Skip to content

Commit

Permalink
fixing interpreter socket error (#26870) (#26939)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Dec 11, 2018
1 parent 5148418 commit 9ee2172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/kbn-interpreter/src/public/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export async function createSocket(basePath) {

socket.on('connect', () => {
resolve();
socket.off('connectionFailed', errorHandler);
socket.off('connect_error', errorHandler);
socket.off('connect_timeout', errorHandler);
});

function errorHandler(err) {
Expand Down

0 comments on commit 9ee2172

Please sign in to comment.