]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Unlock the session like we should be doing
authorAndrew Thompson <andrew@hijacked.us>
Fri, 13 Mar 2009 19:55:55 +0000 (19:55 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Fri, 13 Mar 2009 19:55:55 +0000 (19:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12594 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_erlang_event/handle_msg.c

index 23b34fad43f71a45cdb4d149b4ee184f2662aa2f..cf0d3a30488cfa1b1f8d6e6c0791caad1f226914 100644 (file)
@@ -584,6 +584,9 @@ static switch_status_t handle_msg_handlecall(listener_t *listener, erlang_msg *m
                                ei_x_encode_atom(rbuf, "error");
                                ei_x_encode_atom(rbuf, "badsession");
                        }
+                       /* release the lock returned by switch_core_locate_session */
+                       switch_core_session_rwunlock(session);
+
                } else {
                        ei_x_encode_tuple_header(rbuf, 2);
                        ei_x_encode_atom(rbuf, "error");