We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2616e72 commit 1f26ae6Copy full SHA for 1f26ae6
1 file changed
src/session_server.c
@@ -3532,13 +3532,8 @@ nc_ch_client_thread(void *arg)
3532
3533
unlock_skip:
3534
free(data->client_name);
3535
- if (nc_mutex_lock(&data->cond_lock, NC_CH_COND_LOCK_TIMEOUT, __func__) != 1) {
3536
- pthread_cond_destroy(&data->cond);
3537
- nc_mutex_unlock(&data->cond_lock, __func__);
3538
- } else {
3539
3540
- }
3541
pthread_mutex_destroy(&data->cond_lock);
+ pthread_cond_destroy(&data->cond);
3542
free(data);
3543
return NULL;
3544
}
0 commit comments