Skip to content

Commit

Permalink
Merge pull request #21105 from maribu/pkg/tinydtls/compilation-with-a…
Browse files Browse the repository at this point in the history
…sync-but-without-async-event

pkg/tinydtls: fix compilation with sock_async
  • Loading branch information
maribu authored Dec 23, 2024
2 parents a8b4773 + e08fb49 commit 95fe972
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/tinydtls/contrib/sock_dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,13 +1063,13 @@ void sock_dtls_set_cb(sock_dtls_t *sock, sock_dtls_cb_t cb, void *cb_arg)
{
sock->async_cb = cb;
sock->async_cb_arg = cb_arg;
if (IS_USED(MODULE_SOCK_ASYNC_EVENT)) {
sock_async_ctx_t *ctx = sock_dtls_get_async_ctx(sock);
if (ctx->queue) {
sock_udp_event_init(sock->udp_sock, ctx->queue, _udp_cb, sock);
return;
}
#if MODULE_SOCK_ASYNC_EVENT
sock_async_ctx_t *ctx = sock_dtls_get_async_ctx(sock);
if (ctx->queue) {
sock_udp_event_init(sock->udp_sock, ctx->queue, _udp_cb, sock);
return;
}
#endif
sock_udp_set_cb(sock->udp_sock, _udp_cb, sock);
}

Expand Down

0 comments on commit 95fe972

Please sign in to comment.