From: Andrew Thompson Date: Wed, 29 Jul 2009 23:16:32 +0000 (+0000) Subject: Don't make channels stuck X-Git-Tag: v1.0.4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=467653216a36a7cd0585bbefe24b73fd22a7c384;p=thirdparty%2Ffreeswitch.git Don't make channels stuck git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14428 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c index 389a2a22e2..d1c52e1713 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c @@ -688,6 +688,7 @@ static void handle_exit(listener_t *listener, erlang_pid *pid) switch_channel_set_private(channel, "_erlang_session_", NULL); switch_channel_set_private(channel, "_erlang_listener_", NULL); /* TODO can we clear out the state_change hook too? */ + switch_core_session_rwunlock(session); } /* TODO - if a spawned process that was handling an outbound call fails.. what do we do with the call? */ }