Skip to content

Commit

Permalink
Fixed missing event for server session removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Jarosz authored and mrdeep1 committed May 14, 2024
1 parent c17f582 commit 5234f41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coap_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,7 @@ coap_free_endpoint(coap_endpoint_t *ep) {
SESSIONS_ITER_SAFE(ep->sessions, session, rtmp) {
assert(session->ref == 0);
if (session->ref == 0) {
coap_handle_event(ep->context, COAP_EVENT_SERVER_SESSION_DEL, session);
coap_session_free(session);
}
}
Expand Down

0 comments on commit 5234f41

Please sign in to comment.