Skip to content

Commit 9ca7fd3

Browse files
author
rt
committed
-
1 parent 75b7e4a commit 9ca7fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rts/System/SpringApp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ int SpringApp::Run()
910910

911911
// no exception from main, check if some other thread interrupted our regular loop
912912
// in case one did, ErrorMessageBox will call ShutDown and forcibly exit the process
913-
if ((thrErr = Threading::GetThreadError()) != nullptr)
913+
if (!(thrErr = Threading::GetThreadError())->Empty())
914914
ErrorMessageBox(" [thread] " + thrErr->message, thrErr->caption, thrErr->flags);
915915

916916
try {
@@ -921,7 +921,7 @@ int SpringApp::Run()
921921
} CATCH_SPRING_ERRORS
922922

923923
// no exception from main, but a thread might have thrown *during* ShutDown
924-
if ((thrErr = Threading::GetThreadError()) != nullptr)
924+
if (!(thrErr = Threading::GetThreadError())->Empty())
925925
ErrorMessageBox(" [thread] " + thrErr->message, thrErr->caption, thrErr->flags);
926926

927927
// cleanup signal handlers, etc

0 commit comments

Comments
 (0)