From 53c63dc6502072e4fe2d3cdf5a08752637409d0f 2014-09-22 19:09:30 From: Jonathan Frederic Date: 2014-09-22 19:09:30 Subject: [PATCH] Merge pull request #6497 from SylvainCorlay/_ws_opened status_started.Kernel was never triggered --- diff --git a/IPython/html/static/services/kernels/js/kernel.js b/IPython/html/static/services/kernels/js/kernel.js index d174e65..9b4937a 100644 --- a/IPython/html/static/services/kernels/js/kernel.js +++ b/IPython/html/static/services/kernels/js/kernel.js @@ -219,7 +219,7 @@ define([ var channels = [this.shell_channel, this.iopub_channel, this.stdin_channel]; for (var i=0; i < channels.length; i++) { // if any channel is not ready, don't trigger event. - if ( channels[i].readyState == WebSocket.OPEN ) return; + if ( channels[i].readyState !== WebSocket.OPEN ) return; } // all events ready, trigger started event. this.events.trigger('status_started.Kernel', {kernel: this});