The server auto-kills when a major error occurs

This commit is contained in:
Gaël Métais
2014-09-05 19:04:25 +02:00
parent 839a891e9d
commit b730249b34
2 changed files with 17 additions and 0 deletions
+7
View File
@@ -62,6 +62,13 @@
document.body.className = '';
});
socket.on('reconnect_error', function() {
statusElement.innerHTML = "Server reboot. Please start a new test."
// Stop the spinner
document.body.className = '';
});
askStatus();