{master} close WS on reload
prevents new WS events from triggering more reloadspull/6529/head
parent
cba3207173
commit
1159af4428
|
@ -360,6 +360,7 @@ lichess.redirect = function(obj) {
|
|||
lichess.reload = function() {
|
||||
if (lichess.redirectInProgress) return;
|
||||
lichess.hasToReload = true;
|
||||
lichess.socket.destroy();
|
||||
if (location.hash) location.reload();
|
||||
else location.href = location.href;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue