removed some db reconnections as might be cause of handles issue
This commit is contained in:
parent
16441ae7a5
commit
168bcf5b4e
@ -104,11 +104,7 @@ public Action allow_leaving_again(Handle hTimer, int Serial)
|
|||||||
}
|
}
|
||||||
public Action Timer_alter_tables(Handle hTimer)
|
public Action Timer_alter_tables(Handle hTimer)
|
||||||
{
|
{
|
||||||
if (!g_dDatabase)
|
if (g_dDatabase)
|
||||||
{
|
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
startTimer();
|
startTimer();
|
||||||
}
|
}
|
||||||
@ -320,9 +316,7 @@ public void RemoveBinarySearchIndex()
|
|||||||
|
|
||||||
public void OnMapEnd()
|
public void OnMapEnd()
|
||||||
{
|
{
|
||||||
if (!g_dDatabase)
|
if (g_dDatabase)
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
|
||||||
else
|
|
||||||
RemoveBinarySearchIndex();
|
RemoveBinarySearchIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -937,7 +931,6 @@ public void insertPlayerMYSQL(int client)
|
|||||||
char[] sEscapedName = new char[size2 + 1];
|
char[] sEscapedName = new char[size2 + 1];
|
||||||
if (!g_dDatabase)
|
if (!g_dDatabase)
|
||||||
{
|
{
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_dDatabase.Escape(sName, sEscapedName, size2 + 1);
|
g_dDatabase.Escape(sName, sEscapedName, size2 + 1);
|
||||||
@ -983,7 +976,6 @@ public void insert_client_ignoring_racetimer(int client)
|
|||||||
GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID));
|
GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID));
|
||||||
if (!g_dDatabase)
|
if (!g_dDatabase)
|
||||||
{
|
{
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (StrEqual(sSID, "STEAM_ID_STOP_IGNORING_RETVALS") || StrEqual(sSID, "STEAM_ID_PENDING"))
|
if (StrEqual(sSID, "STEAM_ID_STOP_IGNORING_RETVALS") || StrEqual(sSID, "STEAM_ID_PENDING"))
|
||||||
|
Loading…
Reference in New Issue
Block a user