Fix mutex lock not being unlocked
This commit is contained in:
parent
1c24cc9311
commit
c82fd10470
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue