]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Don't make channels stuck
authorAndrew Thompson <andrew@hijacked.us>
Wed, 29 Jul 2009 23:16:32 +0000 (23:16 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Wed, 29 Jul 2009 23:16:32 +0000 (23:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14428 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

index 389a2a22e2ba9ac4464fb825f69a75ec48909992..d1c52e171313be16e62985f72b8f98bd88caac59 100644 (file)
@@ -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? */
                }