From 57fc899842f07613ac44788ebad3c26bf33a4481 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 9 Jun 2010 11:15:07 -0500 Subject: [PATCH] add missing rwunlock --- src/switch_ivr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 3e143cf3d2..d1abab3921 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1206,6 +1206,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_media(const char *uuid, switch_media_ status = SWITCH_STATUS_SUCCESS; if (switch_core_session_receive_message(session, &msg) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Can't re-establsh media on %s\n", switch_channel_get_name(channel)); + switch_core_session_rwunlock(session); return SWITCH_STATUS_GENERR; }