Skip to content

Commit 34ec550

Browse files
committed
Addendum to last
1 parent 251f9d0 commit 34ec550

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
@@ -1509,13 +1509,14 @@ void CCore::Quit(bool bInstantly)
15091509
// Destroy the client
15101510
CModManager::GetSingleton().Unload();
15111511

1512-
// Use TerminateProcess before destroying CCore to ensure clean exit code
1512+
WatchDogCompletedSection("Q0");
1513+
1514+
// Use TerminateProcess before destroying CCore to ensure clean exit code (Exiting the normal way also crashes).
15131515
TerminateProcess(GetCurrentProcess(), 0);
15141516

15151517
// Destroy ourself (unreachable but kept for completeness)
15161518
delete CCore::GetSingletonPtr();
15171519

1518-
WatchDogCompletedSection("Q0");
15191520
}
15201521
else
15211522
{

0 commit comments

Comments
 (0)