mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
Removed throw from client disconnect
This commit is contained in:
parent
820b1bf5fd
commit
d992eaa4bb
@ -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__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user