Skip to content

Commit

Permalink
Re-attempt to fix max stack call exceeded error
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Aug 26, 2019
1 parent 63ced23 commit 01ca230
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/client.js
Expand Up @@ -94,7 +94,7 @@ function Client (broker, conn) {
write(that, packet, cb)
})
} else {
cb()
setImmediate(cb)
}
}

Expand Down Expand Up @@ -125,9 +125,9 @@ function Client (broker, conn) {
that.broker.persistence.outgoingClearMessageId(that, _packet, nop)
// we consider this to be an error, since the packet is undefined
// so there's nothing to send
cb()
setImmediate(cb)
} else {
cb()
setImmediate(cb)
}
}

Expand Down

0 comments on commit 01ca230

Please sign in to comment.