mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Make ProcessManager slightly safer
This commit is contained in:
parent
1886699595
commit
43dc92f652
|
|
@ -162,6 +162,9 @@ class StreamProcessWrapper {
|
|||
throw new Error(`Unrecognized messageType ${messageType}`);
|
||||
}
|
||||
});
|
||||
this.process.on('disconnect', () => {
|
||||
this.destroy();
|
||||
});
|
||||
}
|
||||
|
||||
deleteStream(/** @type {number} */ taskId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user