remove non-thread-safe function call

conoutf can't be used from any thread other than the main one.
clientlogf may still mix up the output, but it won't crash.
This commit is contained in:
ac-stef
2014-07-27 20:41:40 +02:00
parent 3606a4200c
commit 9fd7740855
+2 -2
View File
@@ -973,8 +973,8 @@ int pingpckservers(void *data)
loopv(pckservers)
{
pckserver *serv = pckservers[i];
if(serv->ping > 0) conoutf("%d. %s (%d ms)", i+1, serv->addr, serv->ping);
else conoutf("%d. %s (did not reply)", i+1, serv->addr);
if(serv->ping > 0) clientlogf("%d. %s (%d ms)", i+1, serv->addr, serv->ping);
else clientlogf("%d. %s (did not reply)", i+1, serv->addr);
}
SDL_mutexV(pingpcksrvlock);