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:
parent
1ee4e232fa
commit
ec2bef40fb
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user