]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add missing rwunlock
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Jun 2010 16:15:07 +0000 (11:15 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Jun 2010 16:15:07 +0000 (11:15 -0500)
src/switch_ivr.c

index 3e143cf3d2edad958e1b1092a2f9f2f5bd30e84a..d1abab3921635177d413a4e771c5b2e352982b2d 100644 (file)
@@ -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;
                        }