diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c index fc38f9e2b2..5d2c516e2c 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c @@ -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); }