From 66f463549da2c055f6bb261ef2a18fd9933045bd Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 9 Apr 2019 12:34:15 +0200 Subject: [PATCH] fix(core): update --- package.json | 2 +- ts/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 280c69f..a569548 100644 --- a/package.json +++ b/package.json @@ -28,4 +28,4 @@ "@types/node-ipc": "^9.1.1", "node-ipc": "^9.1.1" } -} +} \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index e901807..e1f8bdb 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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);