Too many false positive with the timeout detection

This commit is contained in:
yflory 2019-02-05 16:17:54 +01:00
parent 412670c8a6
commit f04ba4a3d8
2 changed files with 5 additions and 2 deletions

View File

@ -1054,11 +1054,13 @@ define([
var timeout = false; var timeout = false;
var onTimeout = function () { var onTimeout = function () {
// XXX return;
/*
timeout = true; timeout = true;
common.onNetworkDisconnect.fire(); common.onNetworkDisconnect.fire();
// FIXME: no UI in outer... // FIXME: no UI in outer...
window.alert("Timeout error, please reload this tab"); window.alert("Timeout error, please reload this tab");
*/
}; };
var queries = { var queries = {

View File

@ -1593,6 +1593,7 @@ define([
broadcast([], 'NETWORK_RECONNECT', {myId: info.myId}); broadcast([], 'NETWORK_RECONNECT', {myId: info.myId});
}); });
/*
// Ping clients regularly to make sure one tab was not closed without sending a removeClient() // Ping clients regularly to make sure one tab was not closed without sending a removeClient()
// command. This allow us to avoid phantom viewers in pads. // command. This allow us to avoid phantom viewers in pads.
var PING_INTERVAL = 30000; var PING_INTERVAL = 30000;
@ -1625,7 +1626,7 @@ define([
ping(); ping();
}); });
}, PING_INTERVAL); }, PING_INTERVAL);
*/
}; };
/** /**