jackrabbit
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -36,6 +36,14 @@ var amqp = require('amqplib/callback_api'); | ||
function close(callback) { | ||
connection.close(function(err) { | ||
if (callback) callback(err); | ||
rabbit.emit('close'); | ||
}); | ||
try { | ||
// I don't think amqplib should be throwing here, as this is an async function | ||
// TODO: figure out how to test whether or not amqplib will throw | ||
// (eg, how do they determine if closing is an illegal operation?) | ||
connection.close(function(err) { | ||
if (callback) callback(err); | ||
rabbit.emit('close'); | ||
}); | ||
} | ||
catch (e) { | ||
if (callback) callback(e); | ||
} | ||
} | ||
@@ -42,0 +50,0 @@ |
{ | ||
"name": "jackrabbit", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Easy RabbitMQ for node", | ||
@@ -5,0 +5,0 @@ "readme": "https://github.com/hunterloftis/jackrabbit/blob/master/readme.md", |
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
24333
704