Skip to content

Commit 44c9b90

Browse files
committed
Merge pull request #2 from olive75/patch-2
Corrected deletion key on disconnect
2 parents a85e377 + 2f2aaa8 commit 44c9b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function adapter(uri, opts){
153153
Redis.prototype.delAll = function(id, fn){
154154
Adapter.prototype.delAll.call(this, id);
155155

156-
data.smembers(id, function(err, rooms){
156+
data.smembers(prefix + '#' + id, function(err, rooms){
157157
var multi = data.multi();
158158
for(var i=0; i<rooms.length; ++i){
159159
multi.srem(prefix + '#' + rooms[i], id);

0 commit comments

Comments
 (0)