Removed throw from client disconnect

This commit is contained in:
mathusummut 2018-09-19 20:34:03 +02:00
parent 820b1bf5fd
commit d992eaa4bb

View File

@ -1010,13 +1010,13 @@ namespace Glest {
//make sure we read the message
//time_t receiveTimeElapsed = time(NULL);
NetworkMessageCommandList networkMessageCommandList;
/*NetworkMessageCommandList networkMessageCommandList;
bool gotCmd = receiveMessage(&networkMessageCommandList);
if (gotCmd == false) {
throw megaglest_runtime_error("error retrieving nmtCommandList returned false!");
}
if (SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance, "In [%s::%s Line: %d] took msecs: %lld\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__, chrono.getMillis());
if (SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) chrono.start();
if (SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) chrono.start();*/
this->setLastPingInfoToNow();
}
@ -1129,7 +1129,7 @@ namespace Glest {
return;
}
throw megaglest_runtime_error("error retrieving nmtCommandList returned false!");
//throw megaglest_runtime_error("error retrieving nmtCommandList returned false!");
}
//printf("Client Thread getFrameCount(): %d getCommandCount(): %d\n",networkMessageCommandList.getFrameCount(),networkMessageCommandList.getCommandCount());
@ -1606,11 +1606,11 @@ namespace Glest {
}
} else if (networkMessageType == nmtCommandList) {
//make sure we read the message
NetworkMessageCommandList networkMessageCommandList;
/*NetworkMessageCommandList networkMessageCommandList;
bool gotCmd = receiveMessage(&networkMessageCommandList);
if (gotCmd == false) {
throw megaglest_runtime_error("error retrieving nmtCommandList returned false!");
}
}*/
} else if (networkMessageType == nmtInvalid) {
if (chrono.getMillis() > readyWaitTimeout) {
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s] Line: %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);