mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Don't shutdown server when there are outstanding sql queries to be executed
This commit is contained in:
parent
a46cc81040
commit
3db7fca215
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue