1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

tinydtls_sock_dtls: don't put alert & EVENT_CONNECT in mbox

This commit is contained in:
M Aiman Ismail 2020-06-18 14:14:12 +02:00
parent 2e16b90b38
commit 44f2f50c89

View File

@ -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;
}