git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12906 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2009-04-03 17:52:38 +00:00
parent 03a72a5ef4
commit c9c2f8d6df
1 changed files with 2 additions and 2 deletions

View File

@ -1145,12 +1145,12 @@ session_elem_t* attach_call_to_spawned_process(listener_t* listener, char *modul
session_element->process.type = ERLANG_PID;
memcpy(&session_element->process.pid, pid, sizeof(erlang_pid));
switch_safe_free(pid); /* malloced in handle_ref_tuple */
switch_set_flag(session_element, LFLAG_SESSION_ALIVE);
switch_clear_flag(session_element, LFLAG_OUTBOUND_INIT);
switch_clear_flag(session_element, LFLAG_WAITING_FOR_PID);
ei_link(listener, ei_self(listener->ec), pid);
ei_link(listener, ei_self(listener->ec), pid);
switch_safe_free(pid); /* malloced in handle_ref_tuple */
}
return session_element;
}