REfactor SimDatabase PRODUCES CRASH ON EXIT

This commit is contained in:
2022-09-11 04:31:01 +02:00
parent 4445f1f12a
commit 161941ac1b
11 changed files with 207 additions and 140 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void Websocket::onClientMessageCallback(const ix::WebSocketMessagePtr &msg)
this->webSocket->send("MASTER:" + user);
this->toLog("Connecting as " + user);
} else if (msg->type == ix::WebSocketMessageType::Close) {
if (msg->closeInfo.reason.compare("DUPLICATE")) {
if (msg->closeInfo.reason.compare("DUPLICATE") == 0) {
this->webSocket->disableAutomaticReconnection();
this->toLog("Disconnected due to beeing a duplicate simualtor");