Reverted 10 msec wait to prevent sys resources flooding on retries

This commit is contained in:
Fabio Manganiello 2018-04-09 23:26:14 +02:00
parent ce5db9a9c6
commit c81e969097

View file

@ -33,8 +33,7 @@ $(document).ready(function() {
console.log('Websocket closed, code: ' + event.code);
websocketReconnectInterval = setInterval(function() {
initWebsocket();
}, event.code == 1000 ? 10 : 5000); // Reconnect immediately in case of normal websocket closure
// otherwise wait 5 seconds
}, 5000);
};
};