Skip to content

Commit

Permalink
Busy Mode|Fixed: Fatal errors inside busy worker
Browse files Browse the repository at this point in the history
When a fatal error occurs inside the busy worker, the main
thread will handle shutdown.
  • Loading branch information
skyjake committed Jan 29, 2012
1 parent 29d44fd commit 0382863
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doomsday/engine/portable/src/con_main.c
Expand Up @@ -2064,13 +2064,15 @@ void Con_Error(const char* error, ...)

if(Con_IsBusy())
{
// In busy mode, the other thread will handle this.
Con_BusyWorkerError(buff);
for(;;)

if(Con_IsBusyWorker())
{
// We'll stop here.
// \todo Kill this thread?
Sys_Sleep(10000);
for(;;)
{
// We'll stop here. The main thread will shut down the process.
Sys_Sleep(500);
}
}
}
else
Expand Down

0 comments on commit 0382863

Please sign in to comment.