Skip to content

Commit afe5027

Browse files
committed
Dispose socket after removing listeners
1 parent 912597f commit afe5027

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/connection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = class Connection extends EventEmitter {
5353
if (this.transport) {
5454
this.clearTimers();
5555
this.transport.removeAllListeners();
56+
this.transport.disposeSocket();
5657
}
5758
this.transport = new options.transport(options);
5859

0 commit comments

Comments
 (0)