Skip to content

Commit

Permalink
Merge pull request log4js-node#1 from andyschwarzl/fix-shutdown-error
Browse files Browse the repository at this point in the history
Pass exit listener name to fix uncaught exception during shutdown.
  • Loading branch information
andyschwarzl authored Sep 6, 2018
2 parents cad1836 + dd9be57 commit af3098b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function gelfAppender(layout, config, levels) {
app.shutdown = function (cb) {
debug('Shutdown called');
client.close(cb);
process.removeListener(exit);
process.removeListener('exit', exit);
};

return app;
Expand Down

0 comments on commit af3098b

Please sign in to comment.