From 55274af45aaa157d5d8099dcdf7dd46290bfb6fb Mon Sep 17 00:00:00 2001 From: Manuel Baclet Date: Thu, 11 Jun 2015 11:36:06 +0200 Subject: [PATCH] Small fix. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {