Commit 230272f6 authored by Vadym Gidulian's avatar Vadym Gidulian

Fixed error in `grace.shutdown` happens if use it outside of its module context

parent abf68b72
...@@ -42,7 +42,7 @@ module.exports = { ...@@ -42,7 +42,7 @@ module.exports = {
async shutdown(code) { async shutdown(code) {
logInfo('Server is shutting down gracefully...'); logInfo('Server is shutting down gracefully...');
await this.handleShutdown(); await module.exports.handleShutdown();
process.exit(code || 0); process.exit(code || 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment