Sfoglia il codice sorgente

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.
Arseniy Shestakov 8 anni fa
parent
commit
ec2bef40fb
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      client/Client.cpp

+ 1 - 3
client/Client.cpp

@@ -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
 }