fix thread exit crash

This commit is contained in:
elisha464 2014-01-23 21:37:59 +02:00
parent 64bfae6648
commit 8a3835bcef
3 changed files with 8 additions and 3 deletions

View file

@ -351,6 +351,11 @@ void CPUThread::Task()
{
ConLog.Error("Exception: %s", e);
}
catch(int exitcode)
{
ConLog.Success("Exit Code: %d", exitcode);
return;
}
//ConLog.Write("%s leave", CPUThread::GetFName());