Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #74 from vetrovosk/issue73

Fixed multiple event emitting. Closes #73
  • Loading branch information...
commit f23e8e9aae2226b52d5554762893d8a9e655998d 2 parents dc4db8f + df7533c
@tj tj authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/queue/events.js
View
1  lib/queue/events.js
@@ -44,6 +44,7 @@ exports.add = function(job){
*/
exports.subscribe = function(){
+ if (exports.subscribed) return;
var client = pool.pubsubClient();
client.subscribe(exports.key);
client.on('message', exports.onMessage);
Please sign in to comment.
Something went wrong with that request. Please try again.