Skip to content

Commit

Permalink
Fix uncaughtException forcing shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Martins authored and Americas committed Apr 5, 2017
1 parent 3b75c65 commit 09a0729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ process.on('unhandledRejection', error => {
process.on('uncaughtException', error => {
log.info('Caught exception', error);

processManager.shutdown({ error, force: true });
processManager.shutdown({ error });
});

/**
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ describe('ProcessManager', () => {
const error = new Error();

process.once('uncaughtException', () => {
expect(processManager.shutdown).toBeCalledWith({ error, force: true });
expect(processManager.shutdown).toBeCalledWith({ error });

done();
});
Expand Down

0 comments on commit 09a0729

Please sign in to comment.