Skip to content

Commit

Permalink
[electron] Make sure electron app terminates if the parent ceramic co…
Browse files Browse the repository at this point in the history
…mmand does
  • Loading branch information
jeremyfa committed Dec 28, 2024
1 parent b86299b commit 164acb9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runner/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,11 @@ if (watchFile != null) {
}
});
}

process.on('SIGINT', () => {
app.quit();
});

process.on('SIGTERM', () => {
app.quit();
});

0 comments on commit 164acb9

Please sign in to comment.