Fix timeout bug
This commit is contained in:
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…
x
Reference in New Issue
Block a user