self vs this fix for inside a callback

This commit is contained in:
Andrew Arrow
2013-05-06 12:51:50 -07:00
parent fa4cd75dba
commit 01b84b338c
+1 -1
View File
@@ -150,7 +150,7 @@ Engine.prototype = {
self._redis.publish(self._ns + '/notifications', clientId);
self.clientExists(clientId, function(exists) {
if (!exists) this._redis.del(queue);
if (!exists) self._redis.del(queue);
});
});
};