From 2f2aaa86fe7931c149024e812f68d3dd9149d243 Mon Sep 17 00:00:00 2001 From: olive75 Date: Thu, 7 Aug 2014 22:24:39 +0200 Subject: [PATCH] Corrected key deletion on leave --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 241aa2c..3af7e34 100644 --- a/index.js +++ b/index.js @@ -153,7 +153,7 @@ function adapter(uri, opts){ Redis.prototype.delAll = function(id, fn){ Adapter.prototype.delAll.call(this, id); - data.smembers(id, function(err, rooms){ + data.smembers(prefix + '#' + id, function(err, rooms){ var multi = data.multi(); for(var i=0; i