diff options
author | Eniz Vukovic <eniz_vukovic@hotmail.com> | 2015-10-23 22:56:54 +0200 |
---|---|---|
committer | Eniz Vukovic <eniz_vukovic@hotmail.com> | 2015-10-23 22:56:54 +0200 |
commit | 7972db5c41b1cd573e4ba362d5d76ad4cd691c9f (patch) | |
tree | 736dd4f273d4a0d629ffc573ecc804fb2c9f929a /toxav/toxav.c | |
parent | d012bb1e8e0012950c00cd72471c5c77c6a5e9ac (diff) |
Removed mutex operations
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r-- | toxav/toxav.c | 3 |
1 files changed, 0 insertions, 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 | |||
440 | 440 | ||
441 | case TOXAV_CALL_CONTROL_CANCEL: { | 441 | case TOXAV_CALL_CONTROL_CANCEL: { |
442 | /* Hang up */ | 442 | /* Hang up */ |
443 | pthread_mutex_lock(call->mutex); | ||
444 | if (msi_hangup(call->msi_call) != 0) { | 443 | if (msi_hangup(call->msi_call) != 0) { |
445 | rc = TOXAV_ERR_CALL_CONTROL_SYNC; | 444 | rc = TOXAV_ERR_CALL_CONTROL_SYNC; |
446 | pthread_mutex_unlock(call->mutex); | ||
447 | goto END; | 445 | goto END; |
448 | } | 446 | } |
449 | 447 | ||
450 | call->msi_call = NULL; | 448 | call->msi_call = NULL; |
451 | pthread_mutex_unlock(call->mutex); | ||
452 | 449 | ||
453 | /* No mather the case, terminate the call */ | 450 | /* No mather the case, terminate the call */ |
454 | call_kill_transmission(call); | 451 | call_kill_transmission(call); |