diff --git a/index.js b/index.js index 7700c58e..3bec9ed3 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,7 @@ Adapter.prototype.delAll = function(id, fn){ var rooms = this.sids[id]; if (rooms) { for (var room in rooms) { - if (rooms.hasOwnProperty(room)) { + if (this.rooms.hasOwnProperty(room)) { this.rooms[room].del(id); } if (this.rooms[room].length === 0) {