From 0562de6aa1dcd23e0f5aae1e0808d5b84134a394 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 30 Jul 2022 18:53:21 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartproxy.classes.networkproxy.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 4622c80..b133f9c 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartproxy', - version: '3.0.19', + version: '3.0.20', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index ee62d36..ad266ff 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -241,6 +241,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= Host: ws.url, }, }); + wsc.on('open', () => { wscConnected.resolve(); }); @@ -257,10 +258,8 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= const cleanUp = () => { ws.close(); ws.terminate(); - ws.removeAllListeners(); wsc.close(); wsc.terminate(); - wsc.removeAllListeners(); }; ws.on('close', (message) => {