mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Misc: Fix abort() on shutdown on *nix
Wait for cliThead to exit before deleting it to about std::abort() triggered on *nix systems.
This commit is contained in:
@@ -311,11 +311,8 @@ extern int main(int argc, char** argv)
|
||||
b[3].Event.KeyEvent.wRepeatCount = 1;
|
||||
DWORD numb;
|
||||
WriteConsoleInput(hStdIn, b, 4, &numb);
|
||||
|
||||
cliThread->join();
|
||||
|
||||
#endif
|
||||
|
||||
cliThread->join();
|
||||
delete cliThread;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user