Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #11 from DrewMartin/master

Fix for an array bounds error in removeListeners
  • Loading branch information...
commit 2f869792f6af1f5896500fc5f5670bf3e5408f97 2 parents f6617da + 00b968a
authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/MongoMQ.js
2  lib/MongoMQ.js
@@ -407,7 +407,7 @@ MongoMQ.prototype.removeListeners = function(event, handler){
407 407 }
408 408 if(!(event||handler)) return false;
409 409 var found = false, listener;
410   - for(var i = l; i>-1; i--){
  410 + for(var i = l-1; i>-1; i--){
411 411 found = false;
412 412 listener = self.listeners[i];
413 413 if(event) found = (event==listener.event)||(listener.event=='*');

0 comments on commit 2f86979

Please sign in to comment.
Something went wrong with that request. Please try again.