mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 16:09:00 +02:00
- overhaul of thread processing, especially in the menus, things now freeze much less and should be more reliable
This commit is contained in:
@@ -787,7 +787,7 @@ float Socket::getThreadedPingMS(std::string host) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void Socket::simpleTask() {
|
||||
void Socket::simpleTask(BaseThread *callingThread) {
|
||||
// update ping times every x seconds
|
||||
const int pingFrequencySeconds = 2;
|
||||
if(difftime(time(NULL),lastThreadedPing) < pingFrequencySeconds) {
|
||||
|
Reference in New Issue
Block a user