Skip to content

Commit 3acbdc0

Browse files
committed
Close server.ws is any
1 parent e5f0ec6 commit 3acbdc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Server.prototype.close = function(){
184184
this.clients[i].close(true);
185185
}
186186
}
187+
if (this.ws) this.ws.close();
187188
return this;
188189
};
189190

0 commit comments

Comments
 (0)