mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Fix hotpatching
This commit is contained in:
parent
cf9f7a5a19
commit
d2ba0c7a9f
|
|
@ -453,7 +453,7 @@ export abstract class ProcessManager<T extends ProcessWrapper = ProcessWrapper>
|
|||
if (!process) return;
|
||||
this.destroyProcess(process);
|
||||
const processIndex = this.processes.indexOf(process);
|
||||
if (!processIndex) throw new Error('Process inactive');
|
||||
if (processIndex < 0) throw new Error('Process inactive');
|
||||
this.processes.splice(this.processes.indexOf(process), 1);
|
||||
this.releasingProcesses.push(process);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user