1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Simplified code

This commit is contained in:
Ivan Savenko
2024-02-02 00:29:15 +02:00
parent ad547fcae0
commit c12558bf8a
5 changed files with 30 additions and 37 deletions

View File

@ -129,7 +129,15 @@ public:
CServerHandler::~CServerHandler()
{
networkHandler->stop();
threadNetwork->join();
try
{
threadNetwork->join();
}
catch (const std::runtime_error & e)
{
logGlobal->error("Failed to shut down network thread! Reason: %s", e.what());
assert(false);
}
}
CServerHandler::CServerHandler()