diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 571f191..c0abf70 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.15', + version: '3.0.16', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index ac6aad0..6499d2c 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -265,6 +265,9 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= destroyed = true; connection.destroy(); console.log(`socket successfully destroyed.`); + plugins.smartdelay.delayFor(1000).then(() => { + connection.removeAllListeners(); + }); } } const cleanupConnection = () => {