Skip to content

Commit

Permalink
Merge pull request #168 from topworldcoder/main
Browse files Browse the repository at this point in the history
Add memory release and thread release
  • Loading branch information
sepfy authored Dec 15, 2024
2 parents 4df7bc3 + cbf52ae commit 9f55c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/peer_signaling.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ void peer_signaling_leave_channel() {
if (status != MQTTSuccess) {
LOGE("Failed to disconnect with broker: %s", MQTT_Status_strerror(status));
}

ssl_transport_disconnect(&g_ps.net_ctx);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ void sctp_destroy_socket(Sctp* sctp) {
if (sctp && sctp->sock) {
usrsctp_shutdown(sctp->sock, SHUT_RDWR);
usrsctp_close(sctp->sock);
usrsctp_finish();
sctp->sock = NULL;
}
#endif
Expand Down

0 comments on commit 9f55c47

Please sign in to comment.