Skip to content

Commit

Permalink
Merge pull request #365 from LuKks/reconfig-timeout-leak
Browse files Browse the repository at this point in the history
Fix reconfig timeout leak
  • Loading branch information
shinyoshiaki authored Feb 5, 2024
2 parents dcbf922 + 28069cb commit d91edbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sctp/src/sctp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,7 @@ export class SCTP {
this.timer1Cancel();
this.timer2Cancel();
this.timer3Cancel();
this.timerReconfigCancel();
this.setConnectionState("closed");
this.removeAllListeners();
}
Expand All @@ -1206,6 +1207,7 @@ export class SCTP {
clearTimeout(this.timer1Handle);
clearTimeout(this.timer2Handle);
clearTimeout(this.timer3Handle);
clearTimeout(this.timerReconfigHandle);
}

async abort() {
Expand Down

0 comments on commit d91edbf

Please sign in to comment.