Didn't mean to commit this.
This commit is contained in:
Mia 2023-11-04 16:43:55 -05:00
parent d6c78db0dd
commit 56a5175d00

View File

@ -429,7 +429,7 @@ export abstract class ProcessManager<T extends ProcessWrapper = ProcessWrapper>
this.module = module;
this.filename = module.filename;
this.basename = path.basename(module.filename);
this.isParentProcess = !process.send;
this.isParentProcess = (process.mainModule !== module || !process.send);
this.listen();
}