fix(core): update

This commit is contained in:
Philipp Kunz 2019-04-09 12:34:15 +02:00
parent ea47e1afc0
commit 66f463549d
2 changed files with 5 additions and 5 deletions

View File

@ -28,4 +28,4 @@
"@types/node-ipc": "^9.1.1",
"node-ipc": "^9.1.1"
}
}
}

View File

@ -53,7 +53,7 @@ export class SmartIpc {
}
for (const handler of this.handlers) {
ipcEventEmitter.on(handler.keyword, (dataArg) => {
ipcEventEmitter.on(handler.keyword, dataArg => {
handler.handlerFunc(dataArg);
});
}
@ -65,10 +65,10 @@ export class SmartIpc {
public async stop() {
switch (this.options.type) {
case 'server':
this.ipc.server.stop();
break;
this.ipc.server.stop();
break;
case 'client':
break;
break;
}
plugins.smartdelay.delayFor(2000).then(() => {
process.exit(0);