From 1d6967a064e4bad83bfbfb4b4b7eb7ea0cfc3dd3 Mon Sep 17 00:00:00 2001 From: worksofliam Date: Tue, 22 Oct 2024 14:00:13 -0400 Subject: [PATCH] Correctly remove listeners when job is cleaned up Signed-off-by: worksofliam --- src/connection/sqlJob.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection/sqlJob.ts b/src/connection/sqlJob.ts index fb4278fb..7317049d 100644 --- a/src/connection/sqlJob.ts +++ b/src/connection/sqlJob.ts @@ -210,5 +210,6 @@ export class OldSQLJob extends SQLJob { this.channel.close(); this.channel = undefined; this.status = "ended"; + this.responseEmitter.removeAllListeners(); } } \ No newline at end of file