1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +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:
Arseniy Shestakov 2017-09-18 10:46:58 +03:00
parent 1ee4e232fa
commit ec2bef40fb

View File

@ -1081,9 +1081,7 @@ CServerHandler::CServerHandler(bool runServer)
catch(...)
{
vstd::clear_pointer(shared);
logNetwork->error("Cannot open interprocess memory.");
handleException();
throw;
logNetwork->error("Cannot open interprocess memory. Continue without it...");
}
#endif
}