mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +02:00
- attempt to help client wait for network packets better
This commit is contained in:
@@ -840,6 +840,10 @@ void ClientInterface::waitForMessage()
|
|||||||
close();
|
close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Sleep ever second we wait to let other threads work
|
||||||
|
else if(chrono.getMillis() % 1000 == 0) {
|
||||||
|
sleep(0);
|
||||||
|
}
|
||||||
|
|
||||||
//sleep(waitSleepTime);
|
//sleep(waitSleepTime);
|
||||||
waitLoopCount++;
|
waitLoopCount++;
|
||||||
|
Reference in New Issue
Block a user