Skip to content

Commit

Permalink
tinydtls_sock_dtls: don't put alert & EVENT_CONNECT in mbox
Browse files Browse the repository at this point in the history
  • Loading branch information
M Aiman Ismail committed Jun 18, 2020
1 parent 2e16b90 commit 44f2f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/tinydtls/contrib/sock_dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ static int _event(struct dtls_context_t *ctx, session_t *session,
break;
}
#endif /* ENABLE_DEBUG */
mbox_put(&sock->mbox, &msg);
if (!level && (code != DTLS_EVENT_CONNECT)) {
mbox_put(&sock->mbox, &msg);
}
return 0;
}

Expand Down

0 comments on commit 44f2f50

Please sign in to comment.