Skip to content

Commit

Permalink
see also #2
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Dec 30, 2017
1 parent b72b668 commit a1041a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ exports.redis_subscribe_pattern = function (pattern, next) {
})
.on('punsubscribe', function (pattern3, count) {
plugin.logdebug(plugin, 'unsubsubscribed from ' + pattern3);
connection.notes.redis.quit();
});
plugin.redis.psubscribe(pattern);
};
Expand Down Expand Up @@ -221,5 +222,4 @@ exports.redis_subscribe = function (connection, next) {
exports.redis_unsubscribe = function (connection) {
if (!connection.notes.redis) return;
connection.notes.redis.punsubscribe(this.get_redis_sub_channel(connection));
connection.notes.redis.quit();
};

0 comments on commit a1041a0

Please sign in to comment.