fix newish crash on windows when shutting down with --num-cores 1

This commit is contained in:
zeromus 2016-04-24 19:13:07 +00:00
parent 73f5067ebc
commit caec37ef25
1 changed files with 2 additions and 1 deletions

View File

@ -2016,6 +2016,7 @@ void KillDisplay()
{ {
display_die = true; display_die = true;
SetEvent(display_wakeup_event); SetEvent(display_wakeup_event);
if(display_thread)
sthread_join(display_thread); sthread_join(display_thread);
} }