From c82fd10470153578fd94af949433d6006f1332f0 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 7 Mar 2019 12:10:53 +0900 Subject: [PATCH] Fix mutex lock not being unlocked --- src/UDPConnection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UDPConnection.c b/src/UDPConnection.c index 22d8af2..0c9dd5e 100644 --- a/src/UDPConnection.c +++ b/src/UDPConnection.c @@ -331,6 +331,7 @@ void UDPC_client_initiate_connection(UDPC_Context *ctx, uint32_t addr, uint16_t if((ctx->flags & 0x2) == 0 || UDPC_HashMap_has(ctx->conMap, addr) != 0) { // must be client or no already-existing connection to same address + if(ctx->isThreaded != 0) { mtx_unlock(&ctx->tCVMtx); } return; }