Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 4183bc9

Browse files
committed
ensuring local server is shut down when the main process exits
1 parent 2657936 commit 4183bc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,4 +550,9 @@ function openURL(uri) {
550550
app.on('open-url', function(event, uri) {
551551
openURL(uri);
552552
event.preventDefault();
553+
});
554+
555+
// some cleanup when are app is exiting
556+
process.on('exit', () => {
557+
kill_local_server();
553558
});

0 commit comments

Comments
 (0)