Skip to content

Commit b5cbcf2

Browse files
committed
1.6: Forgot to mirror 34ec550
1 parent 25169ea commit b5cbcf2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Client/core/CCore.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,13 +1471,14 @@ void CCore::Quit(bool bInstantly)
14711471
// Destroy the client
14721472
CModManager::GetSingleton().Unload();
14731473

1474-
// Use TerminateProcess before destroying CCore to ensure clean exit code
1474+
WatchDogCompletedSection("Q0");
1475+
1476+
// Use TerminateProcess before destroying CCore to ensure clean exit code (Exiting the normal way also crashes).
14751477
TerminateProcess(GetCurrentProcess(), 0);
14761478

14771479
// Destroy ourself (unreachable but kept for completeness)
14781480
delete CCore::GetSingletonPtr();
14791481

1480-
WatchDogCompletedSection("Q0");
14811482
}
14821483
else
14831484
{

0 commit comments

Comments
 (0)