added another check to ensure client is connected
This commit is contained in:
parent
3e0a567e07
commit
428dd8b4ac
|
|
@ -57,7 +57,11 @@
|
|||
}
|
||||
sessionPingsOut[session.id]++;
|
||||
var jsFunction = "JK.Callbacks.clientPingResponse";
|
||||
jamClient.TestLatency(clientID, jsFunction);
|
||||
|
||||
if (jamClient.connected === true) {
|
||||
logger.log('Testing latency for ' + clientID);
|
||||
jamClient.TestLatency(clientID, jsFunction);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue