- attempt to help client wait for network packets better
This commit is contained in:
parent
a5bf684493
commit
cee6b8dfc8
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user