Skip to content

Commit c6a883c

Browse files
committed
Fixed dispatching to clients that are disconnected.
1 parent af2d9f2 commit c6a883c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/manager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ Manager.prototype.onClose = function (id) {
407407
*/
408408

409409
Manager.prototype.onClientDispatch = function (id, packet) {
410-
this.closed[id].push(packet);
410+
if (this.closed[id]) {
411+
this.closed[id].push(packet);
412+
}
411413
};
412414

413415
/**

0 commit comments

Comments
 (0)