channel private is already removed we don't need to remove the state handler FS-3432

This commit is contained in:
Tamas Cseke 2012-06-08 17:23:07 +02:00
parent 9dc9ee974c
commit 19db96d2ba
1 changed files with 0 additions and 1 deletions

View File

@ -348,7 +348,6 @@ static void destroy_session_elem(session_elem_t *session_element)
}
switch_channel_set_private(channel, "_erlang_session_", NULL);
switch_core_event_hook_remove_state_change(session, state_handler);
switch_channel_clear_flag(channel, CF_CONTROLLED);
switch_core_session_rwunlock(session);
}