From 466cde5b6a6bb889884573ad0553ab346f4508ba Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 25 Jun 2019 00:25:26 +0200 Subject: [PATCH] msg can error before socket --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a6724cf..15b03a7 100644 --- a/index.js +++ b/index.js @@ -101,7 +101,7 @@ function attachFinishedListener (msg, callback) { } // finished on first message event - eeMsg = eeSocket = first([[msg, 'end', 'finish']], onFinish) + eeMsg = eeSocket = first([[msg, 'end', 'finish', 'error']], onFinish) function onSocket (socket) { // remove listener