Skip to content

Commit

Permalink
fixing interpreter socket error (#26870)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored and chrisronline committed Dec 12, 2018
1 parent bcabd91 commit 6121e65
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 6121e65

Please sign in to comment.