2 Commits

Author SHA1 Message Date
463b4db091 1.0.7 2019-04-09 12:34:16 +02:00
66f463549d fix(core): update 2019-04-09 12:34:15 +02:00
3 changed files with 6 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartipc", "name": "@pushrocks/smartipc",
"version": "1.0.6", "version": "1.0.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartipc", "name": "@pushrocks/smartipc",
"version": "1.0.6", "version": "1.0.7",
"private": false, "private": false,
"description": "node inter process communication", "description": "node inter process communication",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -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);