Skip to content

Commit a3ba4e2

Browse files
committed
Fixed; make sure to clear socket handlers and subscriptions upon transport close.
1 parent a483f9c commit a3ba4e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/transport.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ Transport.prototype.close = function () {
439439
Transport.prototype.onClose = function () {
440440
if (this.open) {
441441
this.setCloseTimeout();
442+
this.clearHandlers();
442443
this.open = false;
443444
this.manager.onClose(this.id);
444445
this.store.publish('close', this.id);

0 commit comments

Comments
 (0)