mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
CServerHandler: avoid crash without interprocess memory
Even if shared memory wasn't disabled we shouldn't crash without it. It's important because Snap packages don't have access to /dev/shm.
This commit is contained in:
@ -1081,9 +1081,7 @@ CServerHandler::CServerHandler(bool runServer)
|
|||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
vstd::clear_pointer(shared);
|
vstd::clear_pointer(shared);
|
||||||
logNetwork->error("Cannot open interprocess memory.");
|
logNetwork->error("Cannot open interprocess memory. Continue without it...");
|
||||||
handleException();
|
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user