mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
small fix for initial ping time
This commit is contained in:
@@ -696,9 +696,9 @@ float Socket::getThreadedPingMS(std::string host) {
|
||||
float result = -1;
|
||||
if(pingCache.find(host) == pingCache.end()) {
|
||||
MutexSafeWrapper safeMutex(&pingThreadAccessor);
|
||||
pingCache[host]=-1;
|
||||
safeMutex.ReleaseLock();
|
||||
result = getAveragePingMS(host, 1);
|
||||
pingCache[host]=result;
|
||||
}
|
||||
else {
|
||||
MutexSafeWrapper safeMutex(&pingThreadAccessor);
|
||||
|
Reference in New Issue
Block a user