Fix timeout bug

pull/1/head
yflory 5 years ago
parent 17be91f640
commit 7a91a6d606

@ -1774,7 +1774,7 @@ define([
if (now - lastPing > (2 * 60 * 1000)) { if (now - lastPing > (2 * 60 * 1000)) {
var to = setTimeout(function () { var to = setTimeout(function () {
onTimeout(true); onTimeout(true);
}); }, 5000);
postMessage('PING', null, function () { postMessage('PING', null, function () {
clearTimeout(to); clearTimeout(to);
}); });

Loading…
Cancel
Save