diff --git a/src/switch_channel.c b/src/switch_channel.c index 3a210a4674..49ce775ee6 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -2093,7 +2093,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_get_variables(switch_channel_t *c switch_status_t status; switch_mutex_lock(channel->profile_mutex); status = switch_event_dup(event, channel->variables); - switch_mutex_lock(channel->profile_mutex); + switch_mutex_unlock(channel->profile_mutex); return status; }