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

Commit a88481c

Browse files
committed
fix: improve resilience of stop
1 parent a7e2ae2 commit a88481c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Switch extends EE {
111111
series([
112112
(cb) => each(this.muxedConns, (conn, cb) => {
113113
// If the connection was destroyed while we are hanging up, continue
114-
if (conn === undefined) {
114+
if (!conn) {
115115
return cb()
116116
}
117117

0 commit comments

Comments
 (0)