Skip to content

Commit 8e71dab

Browse files
committedApr 24, 2018
www: Attempt a full page reload if the connection to the server dies
1 parent baaa173 commit 8e71dab

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
 

‎www/eoc/js/eoc.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,7 @@ function connect_socket() {
7171
socket.onopen = authenticate;
7272

7373
socket.onclose = function () {
74-
teams = {};
75-
teamorder = [];
76-
teamlinks = null;
77-
$('#chat').hide();
78-
$('#chat').data('teamid', '');
79-
$('#teams-loading').show();
80-
$('#teamlist').find('.team').not('.template').remove();
81-
socket = false;
82-
rpc.initialised = false;
83-
// reconnect after 10s
84-
setTimeout(connect_socket, 10000);
74+
window.location.reload();
8575
};
8676
}
8777

0 commit comments

Comments
 (0)
Please sign in to comment.