Permalink
Browse files

Fixing bug - [i] is undefined in this scope, should be [idx]

  • Loading branch information...
1 parent aa73f0c commit 19868f2bd2ef58e33034e4bedd207a72c44c5c48 @mfrobben mfrobben committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MongoMQ.js
View
@@ -354,7 +354,7 @@ MongoMQ.prototype.removeListener = function(event, handler){
}
};
if((idx!==false)&&(idx>-1)){
- self.listeners[i].stop(listenerStopped);
+ self.listeners[idx].stop(listenerStopped);
return true;
}
return false;

0 comments on commit 19868f2

Please sign in to comment.