added another check to ensure client is connected

This commit is contained in:
Brian Smith 2013-02-10 09:34:28 -05:00
parent 3e0a567e07
commit 428dd8b4ac
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
});
}