mirror of
https://github.com/koush/scrypted.git
synced 2026-04-27 02:11:08 +01:00
server: worker pid cleanup
This commit is contained in:
@@ -18,7 +18,7 @@ export abstract class ChildProcessWorker extends EventEmitter implements Runtime
|
||||
}
|
||||
|
||||
get pid() {
|
||||
return this.worker.pid;
|
||||
return this.worker?.pid;
|
||||
}
|
||||
|
||||
get stdout() {
|
||||
|
||||
@@ -80,8 +80,4 @@ export class DenoWorker extends ChildProcessWorker {
|
||||
reject?.(e);
|
||||
}
|
||||
}
|
||||
|
||||
get pid() {
|
||||
return this.worker?.pid;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,10 +33,6 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
|
||||
_stderr = new PassThrough();
|
||||
pythonInstallationComplete = true;
|
||||
|
||||
get pid() {
|
||||
return this.worker?.pid || -1;
|
||||
}
|
||||
|
||||
get stdout() {
|
||||
return this._stdout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user