mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
server: fix EventEmitter import
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import child_process from 'child_process';
|
||||
import { once } from 'events';
|
||||
import { EventEmitter } from "ws";
|
||||
import { EventEmitter, once } from 'events';
|
||||
import { RpcMessage, RpcPeer } from "../../rpc";
|
||||
import { RuntimeWorker, RuntimeWorkerOptions } from "./runtime-worker";
|
||||
|
||||
@@ -31,7 +30,7 @@ export abstract class ChildProcessWorker extends EventEmitter implements Runtime
|
||||
stdio.on('error', e => this.emit('error', e));
|
||||
}
|
||||
|
||||
this.killPromise = once(this.worker, 'exit').then(() => {}).catch(() => {});
|
||||
this.killPromise = once(this.worker, 'exit').then(() => { }).catch(() => { });
|
||||
}
|
||||
|
||||
get pid() {
|
||||
|
||||
Reference in New Issue
Block a user