Skip to content

Commit e66a68f

Browse files
committed
Fixed room cleanup
1 parent 4058eac commit e66a68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Manager.prototype.onDisconnect = function (id, local) {
475475

476476
if (this.roomClients[id]) {
477477
for (var room in this.roomClients[id]) {
478-
this.rooms[room].splice(this.rooms.indexOf(id), 1);
478+
this.rooms[room].splice(this.rooms[room].indexOf(id), 1);
479479
}
480480
}
481481

0 commit comments

Comments
 (0)