mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Fix bug in previous commit
This commit is contained in:
parent
4e9ad4e373
commit
c934c04bbc
|
|
@ -28,12 +28,12 @@ class SubprocessStream extends Streams.ObjectReadWriteStream {
|
|||
this.process.send(`${taskId}\nNEW`);
|
||||
}
|
||||
_write(/** @type {string} */ message) {
|
||||
if (!process.connected) return;
|
||||
if (!this.process.connected) return;
|
||||
this.process.send(`${this.taskId}\nWRITE\n${message}`);
|
||||
// responses are handled in ProcessWrapper
|
||||
}
|
||||
_destroy() {
|
||||
if (!process.connected) return;
|
||||
if (!this.process.connected) return;
|
||||
this.process.send(`${this.taskId}\nDESTROY`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user