servicebus
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -75,6 +75,11 @@ var events = require('events'); | ||
if (self.listening) { | ||
self.listenChannel.cancel(self.subscription.consumerTag, function () { | ||
self.emit('unlistened'); | ||
cb(); | ||
}); | ||
// cancel misses callback version so we have to use the promise | ||
self.listenChannel | ||
.cancel(self.subscription.consumerTag) | ||
.then(function () { | ||
self.emit('unlistened'); | ||
if (cb) { | ||
cb(); | ||
} | ||
}); | ||
} else { | ||
@@ -81,0 +86,0 @@ self.on('listening', _unsubscribe.bind(this, cb)); |
@@ -10,3 +10,3 @@ { | ||
"description": "Simple service bus for sending events between processes using amqp.", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"homepage": "https://github.com/mateodelnorte/servicebus", | ||
@@ -13,0 +13,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56712
37
1345