We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4fdf1 commit 611cac7Copy full SHA for 611cac7
src/core/cluster.ts
@@ -131,6 +131,7 @@ export class Cluster<
131
this.messageHandler = new ClusterHandler(this, this.thread);
132
133
const thread = this.thread.spawn();
134
+ thread.on('disconnect', this._handleExit.bind(this));
135
thread.on('message', this._handleMessage.bind(this));
136
thread.on('error', this._handleError.bind(this));
137
thread.on('exit', this._handleExit.bind(this));
0 commit comments