- attempt to help client wait for network packets better

This commit is contained in:
Mark Vejvoda 2010-08-07 05:55:18 +00:00
parent a5bf684493
commit cee6b8dfc8

View File

@ -840,6 +840,10 @@ void ClientInterface::waitForMessage()
close();
return;
}
// Sleep ever second we wait to let other threads work
else if(chrono.getMillis() % 1000 == 0) {
sleep(0);
}
//sleep(waitSleepTime);
waitLoopCount++;