From: Anthony Minessale Date: Wed, 9 Jun 2010 16:15:07 +0000 (-0500) Subject: add missing rwunlock X-Git-Tag: v1.2-rc1~694 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57fc899842f07613ac44788ebad3c26bf33a4481;p=thirdparty%2Ffreeswitch.git add missing rwunlock --- 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; }