mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 20:29:10 +00:00
Fix deadlock if plCrashHandler is not running
Only wait for the crash server to do its job if it's attached. Silent failures are evil, but it's better than hanging forever.
This commit is contained in:
@ -134,5 +134,7 @@ void plCrashCli::ReportCrash(PEXCEPTION_POINTERS e)
|
||||
|
||||
void plCrashCli::WaitForHandle()
|
||||
{
|
||||
fHandled->Wait();
|
||||
// Don't deadlock... Only wait if the CrashSrv is attached
|
||||
if (fLink && fLink->fSrvReady)
|
||||
fHandled->Wait();
|
||||
}
|
||||
|
Reference in New Issue
Block a user