diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 299f1afe11..7a8b6e23b1 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3115,14 +3115,12 @@ static switch_bool_t attended_transfer(switch_core_session_t *session, switch_co result = SWITCH_TRUE; switch_channel_hangup(hup_channel, SWITCH_CAUSE_ATTENDED_TRANSFER); + switch_core_session_rwunlock(t_session); } else { result = SWITCH_FALSE; } } } - if (b_session) { - switch_core_session_rwunlock(b_session); - } return result; }