Skip to content

Commit

Permalink
msg can error before socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jun 24, 2019
1 parent 08345db commit 466cde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 466cde5

Please sign in to comment.