From fceb7fa68d5b93f2840984b41bc8ee5879d0c9db Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 22 Jan 2022 18:39:39 +0100 Subject: [PATCH] Fix compilation error introduced by last commit --- recv_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recv_thread.c b/recv_thread.c index 520e9a0..e2ef9e4 100644 --- a/recv_thread.c +++ b/recv_thread.c @@ -54,7 +54,7 @@ void *dragonnet_peer_recv_thread(void *g_peer) void (*on_recv_type)(DragonnetPeer *, void *) = p->on_recv_type[type_id]; pthread_rwlock_unlock(&p->mu); - if (on_recv != NULL && !on_recv(p, type, buf)) + if (on_recv != NULL && !on_recv(p, type_id, buf)) on_recv_type = NULL; if (on_recv_type != NULL) -- 2.44.0