提交 208f405e 编写于 作者: J Joao Moreno

npe

fixes #2112
上级 890d835b
......@@ -133,7 +133,7 @@ export class Client implements IDisposable {
this.child = cp.fork(this.modulePath, args, forkOpts);
this._client = new IPCClient({
send: r => this.child.connected && this.child.send(r),
send: r => this.child && this.child.connected && this.child.send(r),
onMessage: cb => {
this.child.on('message', (msg) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册