Skip to content

Commit

Permalink
Send Abort In SCTP Close
Browse files Browse the repository at this point in the history
Sending Abort message to follow WebRTC standard
  • Loading branch information
craymond12 authored and Sean-Der committed Sep 23, 2024
1 parent a857d57 commit 5bf7c94
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sctptransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ func (r *SCTPTransport) Stop() error {
if r.sctpAssociation == nil {
return nil
}
err := r.sctpAssociation.Close()
if err != nil {
return err
}

r.sctpAssociation.Abort("")

r.sctpAssociation = nil
r.state = SCTPTransportStateClosed
Expand Down

0 comments on commit 5bf7c94

Please sign in to comment.