From 7972db5c41b1cd573e4ba362d5d76ad4cd691c9f Mon Sep 17 00:00:00 2001 From: Eniz Vukovic Date: Fri, 23 Oct 2015 22:56:54 +0200 Subject: [PATCH] Removed mutex operations --- toxav/toxav.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 1607a952..a88a6cf4 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -440,15 +440,12 @@ bool toxav_call_control(ToxAV *av, uint32_t friend_number, TOXAV_CALL_CONTROL co case TOXAV_CALL_CONTROL_CANCEL: { /* Hang up */ - pthread_mutex_lock(call->mutex); if (msi_hangup(call->msi_call) != 0) { rc = TOXAV_ERR_CALL_CONTROL_SYNC; - pthread_mutex_unlock(call->mutex); goto END; } call->msi_call = NULL; - pthread_mutex_unlock(call->mutex); /* No mather the case, terminate the call */ call_kill_transmission(call);