jdarling / MongoMQ

MongoMQ is a messaging queue built on top of Node.js and MongoDB's tailable cursors.
MIT License
90 stars 20 forks source link

Fix for an array bounds error in removeListeners #11

Closed DrewMartin closed 11 years ago

DrewMartin commented 11 years ago

The loop was starting on listeners.length, but should have started on listeners.length-1

jdarling commented 11 years ago

Thanks for the note and fix. Have to admit that's a common mistake I miss since it doesn't usually affect running code :(