Skip to content

Commit

Permalink
fix(typo): attachingListner => attachingListener
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jun 9, 2015
1 parent 6a7fed0 commit 4781f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/amqp_client.js
Expand Up @@ -428,14 +428,14 @@ AMQPClient.prototype.createReceiver = function(source, filter, cb) {
var linkName = source + '_RX';
if (this._attaching[linkName]) {
return new Promise(function(resolve, reject) {
var attachingListner = function(link) {
var attachingListener = function(link) {
if (link.name === linkName) {
self.removeListener(AMQPClient.LinkAttached, attachingListner);
self.removeListener(AMQPClient.LinkAttached, attachingListener);
resolve(link);
}
};

self.on(AMQPClient.LinkAttached, attachingListner);
self.on(AMQPClient.LinkAttached, attachingListener);
});
}

Expand Down

0 comments on commit 4781f1d

Please sign in to comment.