diff --git a/index.js b/index.js index 79bc5f5..5d7e468 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,9 @@ module.exports = (function () { debug(info('server process exited with [code => %s | sig => %s]'), code, sig); if(sig !== 'SIGKILL'){ //server stopped unexpectedly - process.exit(0); + if (lr) { + lr.close(); + } } }, @@ -147,4 +149,4 @@ module.exports = (function () { }); } }; -})(); \ No newline at end of file +})();