Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
catch SIGINT instead of SIGKILL
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Hall committed Jan 11, 2017
1 parent 6b4073a commit 923c796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class RPC {
self._log(`share ${nodeId} exited with code ${code}`);
clearInterval(uptimeCounter);

if (signal !== 'SIGKILL' && !maxRestartsReached) {
if (signal !== 'SIGINT' && !maxRestartsReached) {
share.meta.numRestarts++;
self.restart(nodeId, () => null);
}
Expand Down

0 comments on commit 923c796

Please sign in to comment.