Skip to content

Commit

Permalink
Fix missing lock release - related to 36b4908.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Nov 9, 2016
1 parent cef7517 commit 5739b15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/call_center/call_center.c
Expand Up @@ -576,8 +576,10 @@ int b2bl_callback_customer(b2bl_cb_params_t *params, unsigned int event)

/* we are not interested in B2B_RE_INVITE_CB and B2B_CONFIRMED_CB
* events, just in the BYEs from media/agent side */
if (event!=B2B_BYE_CB)
if (event!=B2B_BYE_CB) {
lock_set_release( data->call_locks, call->lock_idx );
return 0;
}

/* right-side leg of call sent BYE */
if (stat->call_time==0 && call->state == CC_CALL_TOAGENT) {
Expand Down

0 comments on commit 5739b15

Please sign in to comment.