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)
|
||||
{
|
||||
if (!g_dDatabase)
|
||||
{
|
||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
||||
}
|
||||
else
|
||||
if (g_dDatabase)
|
||||
{
|
||||
startTimer();
|
||||
}
|
||||
@ -320,9 +316,7 @@ public void RemoveBinarySearchIndex()
|
||||
|
||||
public void OnMapEnd()
|
||||
{
|
||||
if (!g_dDatabase)
|
||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
||||
else
|
||||
if (g_dDatabase)
|
||||
RemoveBinarySearchIndex();
|
||||
}
|
||||
|
||||
@ -937,7 +931,6 @@ public void insertPlayerMYSQL(int client)
|
||||
char[] sEscapedName = new char[size2 + 1];
|
||||
if (!g_dDatabase)
|
||||
{
|
||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
||||
return;
|
||||
}
|
||||
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));
|
||||
if (!g_dDatabase)
|
||||
{
|
||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
||||
return;
|
||||
}
|
||||
if (StrEqual(sSID, "STEAM_ID_STOP_IGNORING_RETVALS") || StrEqual(sSID, "STEAM_ID_PENDING"))
|
||||
|
Loading…
Reference in New Issue
Block a user