Skip to content

Commit

Permalink
Merge pull request #121 from karaxuna/karaxuna/handle-datachannel-abort
Browse files Browse the repository at this point in the history
Handle datachannel abort
  • Loading branch information
sepfy authored Sep 8, 2024
2 parents 38dc71e + bf8d4c8 commit 6a9bbdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,12 @@ void sctp_incoming_data(Sctp* sctp, char* buf, size_t len) {
}
}
break;
case SCTP_ABORT:
sctp->connected = 0;
if (sctp->onclose) {
sctp->onclose(sctp->userdata);
}
break;
default:
LOGI("Unknown chunk type %d", chunk_common->type);
length = 0;
Expand Down

0 comments on commit 6a9bbdb

Please sign in to comment.