Skip to content

Commit

Permalink
replaced client.off() for client.removeListener()
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelrodlav committed Aug 12, 2019
1 parent 3f58d16 commit edd1588
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 @@ -171,7 +171,7 @@ module.exports = {
// Remove listeners added to client by this promise
const removePromiseResolutionListeners = () => {
Object.keys(promiseResolutionListeners).forEach((eventName) => {
client.off(eventName, promiseResolutionListeners[eventName]);
client.removeListener(eventName, promiseResolutionListeners[eventName]);
});
};

Expand Down

0 comments on commit edd1588

Please sign in to comment.