Reverted 10 msec wait to prevent sys resources flooding on retries
This commit is contained in:
parent
ce5db9a9c6
commit
c81e969097
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue