fix(core): update
This commit is contained in:
parent
ea47e1afc0
commit
66f463549d
@ -28,4 +28,4 @@
|
|||||||
"@types/node-ipc": "^9.1.1",
|
"@types/node-ipc": "^9.1.1",
|
||||||
"node-ipc": "^9.1.1"
|
"node-ipc": "^9.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -53,7 +53,7 @@ export class SmartIpc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const handler of this.handlers) {
|
for (const handler of this.handlers) {
|
||||||
ipcEventEmitter.on(handler.keyword, (dataArg) => {
|
ipcEventEmitter.on(handler.keyword, dataArg => {
|
||||||
handler.handlerFunc(dataArg);
|
handler.handlerFunc(dataArg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -65,10 +65,10 @@ export class SmartIpc {
|
|||||||
public async stop() {
|
public async stop() {
|
||||||
switch (this.options.type) {
|
switch (this.options.type) {
|
||||||
case 'server':
|
case 'server':
|
||||||
this.ipc.server.stop();
|
this.ipc.server.stop();
|
||||||
break;
|
break;
|
||||||
case 'client':
|
case 'client':
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
plugins.smartdelay.delayFor(2000).then(() => {
|
plugins.smartdelay.delayFor(2000).then(() => {
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user