Merge branch 'editor-js-refactor' into editor-frontend-refactor

This commit is contained in:
Alexander Kastius
2016-09-01 11:52:05 +02:00
3 changed files with 23 additions and 7 deletions

View File

@@ -138,13 +138,13 @@ CodeOceanEditorEvaluation = {
},
killWebsocketAndContainer: function () {
if (this.websocket.readyState != WebSocket.OPEN) {
if (this.websocket.getReadyState() != WebSocket.OPEN) {
return;
}
this.websocket.send(JSON.stringify({cmd: 'exit'}));
this.websocket.flush();
this.websocket.close();
this.websocket.killWebSocket();
this.hideSpinner();
this.running = false;
this.toggleButtonStates();