Skip to content

Commit

Permalink
fix: returning within promise to put a lid on Bluebird
Browse files Browse the repository at this point in the history
  • Loading branch information
mateodelnorte committed Feb 1, 2019
1 parent 95a113d commit 982f13c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bus/rabbitmq/bus.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ function RabbitMQBus (options, implOpts) {
});
}

return self.connection;

}).catch(function (err) {
self.log('error connecting to rabbitmq: %s', err);
self.emit('error', err);
Expand Down

0 comments on commit 982f13c

Please sign in to comment.