Skip to content

Commit

Permalink
Close tiny lr instead of kill the main process
Browse files Browse the repository at this point in the history
  • Loading branch information
Cy Brown committed May 19, 2015
1 parent 2b18b53 commit 08adb69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
},

Expand Down Expand Up @@ -147,4 +149,4 @@ module.exports = (function () {
});
}
};
})();
})();

0 comments on commit 08adb69

Please sign in to comment.