Skip to content

Commit

Permalink
Merge pull request #21 from signalive/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
mertdogar authored Dec 15, 2016
2 parents 6454e53 + 37caab9 commit c3183cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "microservice-kit",
"version": "0.3.11",
"version": "0.3.12",
"description": "",
"main": "src/index.js",
"scripts": {
Expand All @@ -9,7 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"amqplib": "^0.4.0",
"amqplib": "0.5.1",
"async": "^1.5.0",
"async-q": "^0.2.2",
"chance": "^0.8.0",
Expand Down
1 change: 1 addition & 0 deletions src/amqpkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class AmqpKit {
bindEvents() {
this.connection.on('close', () => {
debug('connection closed');
ShutdownKit.gracefulShutdown();
});

this.connection.on('error', (err) => {
Expand Down
5 changes: 2 additions & 3 deletions src/shutdownkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ class ShutdownKit {
else
this.log_('info', 'All jobs done, quiting...');

this.log_('info', 'Bye!', () => {
this.exit_();
});
this.exit_();
});
}

Expand All @@ -87,6 +85,7 @@ class ShutdownKit {
* Exists current process.
*/
exit_() {
this.log_('info', 'Bye!');
process.exit();
}

Expand Down

0 comments on commit c3183cf

Please sign in to comment.