Skip to content

Commit a96ad70

Browse files
authored
Merge pull request #28 from sdasda7777/sdasda7777_processExit
Reinstated process.exit(0) in the SIGINT handler
2 parents e4d4268 + d02350e commit a96ad70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rpc/musichoardersFetcher.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class MusicHoardersFetcher
6262
process.on('SIGINT', () => {
6363
// Save the cache to the file when the application is terminated using SIGINT (Ctrl+C)
6464
this.#saveCacheToFile();
65+
process.exit(0); // Otherwise won't exit
6566
});
6667
}
6768
}

0 commit comments

Comments
 (0)