Don't shutdown server when there are outstanding sql queries to be executed

This commit is contained in:
Zwelf 2021-12-07 13:38:46 +01:00
parent a46cc81040
commit 3db7fca215

View file

@ -108,12 +108,6 @@ void CDbConnectionPool::OnShutdown()
int i = 0;
while(m_Shutdown.load())
{
if(i > 600)
{
dbg_msg("sql", "Waited 60 seconds for score-threads to complete, quitting anyway");
break;
}
// print a log about every two seconds
if(i % 20 == 0)
dbg_msg("sql", "Waiting for score-threads to complete (%ds)", i / 10);