Skip to content

Commit 1d6967a

Browse files
committed
Correctly remove listeners when job is cleaned up
Signed-off-by: worksofliam <[email protected]>
1 parent 58dfece commit 1d6967a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/connection/sqlJob.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,6 @@ export class OldSQLJob extends SQLJob {
210210
this.channel.close();
211211
this.channel = undefined;
212212
this.status = "ended";
213+
this.responseEmitter.removeAllListeners();
213214
}
214215
}

0 commit comments

Comments
 (0)