fix(core): update

This commit is contained in:
2019-08-23 00:41:38 +02:00
parent 209e5644c0
commit 5ddee94f99
4 changed files with 20 additions and 88 deletions

View File

@ -35,10 +35,10 @@ export class SmartProxy {
public async stop() {
await this.proxyWorkerFunctions.stop();
await plugins.smartspawn.Thread.terminate(this.portProxyFunctions);
await plugins.smartspawn.Thread.terminate(this.proxyWorkerFunctions);
console.log('proxy worker stopped');
await this.portProxyFunctions.stop();
await plugins.smartspawn.Thread.terminate(this.proxyWorkerFunctions);
await plugins.smartspawn.Thread.terminate(this.portProxyFunctions);
console.log('portproxy stopped');
console.log('Terminated all childs!');
}