From 6121e655b1c23b698261390d9ac72832789e55dc Mon Sep 17 00:00:00 2001 From: Peter Pisljar Date: Tue, 11 Dec 2018 07:11:52 +0100 Subject: [PATCH] fixing interpreter socket error (#26870) --- packages/kbn-interpreter/src/public/socket.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/kbn-interpreter/src/public/socket.js b/packages/kbn-interpreter/src/public/socket.js index 9143f0018377b..e3a2068086b34 100644 --- a/packages/kbn-interpreter/src/public/socket.js +++ b/packages/kbn-interpreter/src/public/socket.js @@ -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) {