Skip to content

Commit

Permalink
Merge pull request #128 from mateodelnorte/fix/returning-within-promise
Browse files Browse the repository at this point in the history
fix: returning within promise to put a lid on Bluebird
  • Loading branch information
mateodelnorte authored Feb 1, 2019
2 parents 95a113d + 982f13c commit 106fb02
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 106fb02

Please sign in to comment.