mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 11:29:48 +00:00
Whoops!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12906 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
03a72a5ef4
commit
c9c2f8d6df
@ -1145,12 +1145,12 @@ session_elem_t* attach_call_to_spawned_process(listener_t* listener, char *modul
|
|||||||
|
|
||||||
session_element->process.type = ERLANG_PID;
|
session_element->process.type = ERLANG_PID;
|
||||||
memcpy(&session_element->process.pid, pid, sizeof(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_set_flag(session_element, LFLAG_SESSION_ALIVE);
|
||||||
switch_clear_flag(session_element, LFLAG_OUTBOUND_INIT);
|
switch_clear_flag(session_element, LFLAG_OUTBOUND_INIT);
|
||||||
switch_clear_flag(session_element, LFLAG_WAITING_FOR_PID);
|
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;
|
return session_element;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user