Quit even if score-threads didn't complete

This commit is contained in:
def 2017-04-13 08:38:27 +02:00
parent 921cfb29f8
commit d450678bf3

View file

@ -70,6 +70,11 @@ void CSqlScore::OnShutdown()
int i = 0;
while (CSqlExecData::ms_InstanceCount != 0)
{
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 (%d left)", CSqlExecData::ms_InstanceCount);