Skip to content

Commit

Permalink
Correctly remove listeners when job is cleaned up
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Oct 22, 2024
1 parent 58dfece commit 1d6967a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connection/sqlJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,6 @@ export class OldSQLJob extends SQLJob {
this.channel.close();
this.channel = undefined;
this.status = "ended";
this.responseEmitter.removeAllListeners();
}
}

0 comments on commit 1d6967a

Please sign in to comment.