Compare commits
No commits in common. "37ce0ff5bf53eb14ef039fc86071e9b18ccebdbd" and "9eeb38ca3fdcead8ed8294b3737e6ea63cfaf4a2" have entirely different histories.
37ce0ff5bf
...
9eeb38ca3f
@ -15,25 +15,8 @@ class Client extends EventEmitter {
|
|||||||
this.setupSwarm();
|
this.setupSwarm();
|
||||||
|
|
||||||
process.on('exit', () => {
|
process.on('exit', () => {
|
||||||
console.log('EXIT signal received. Shutting down HyperSwarm...');
|
|
||||||
this.destroy();
|
this.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on('SIGTERM', () => {
|
|
||||||
console.log('SIGTERM signal received. Shutting down HyperSwarm...');
|
|
||||||
this.destroy().then(() => {
|
|
||||||
console.log('HyperSwarm was shut down. Exiting the process with exit code 0.');
|
|
||||||
process.exit(0);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
process.on('SIGINT', () => {
|
|
||||||
console.log('SIGINT signal received. Shutting down HyperSwarm...');
|
|
||||||
this.destroy().then(() => {
|
|
||||||
console.log('HyperSwarm was shut down. Exiting the process with exit code 0.');
|
|
||||||
process.exit(0);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setupSwarm() {
|
setupSwarm() {
|
||||||
|
Loading…
Reference in New Issue
Block a user