Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Commit

Permalink
fix: improve resilience of stop
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed May 30, 2018
1 parent a7e2ae2 commit a88481c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Switch extends EE {
series([
(cb) => each(this.muxedConns, (conn, cb) => {
// If the connection was destroyed while we are hanging up, continue
if (conn === undefined) {
if (!conn) {
return cb()
}

Expand Down

0 comments on commit a88481c

Please sign in to comment.