Skip to content

Commit

Permalink
chore: pr review - hold socket listener until dequeued
Browse files Browse the repository at this point in the history
  • Loading branch information
calebboyd committed Apr 9, 2021
1 parent fb4ef52 commit 4472686
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ function attachFinishedListener (msg, callback) {

function onFinish (error) {
eeMsg.cancel()
eeSocket.cancel()

finished = true
callback(error)
}
Expand All @@ -121,7 +119,7 @@ function attachFinishedListener (msg, callback) {

if (msg.socket) {
// socket already assigned
defer(onSocket, msg.socket)
onSocket(msg.socket)
return
}

Expand Down

0 comments on commit 4472686

Please sign in to comment.