switch_mutex_unlock(listener->sock_mutex);
switch_core_hash_destroy(&listener->event_hash);
- switch_core_hash_destroy(&listener->sessions);
/* remove any bindings for this connection */
remove_binding(listener, NULL);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Orphaning call %s\n", s->uuid_str);
destroy_session_elem(s);
}
+ switch_core_hash_destroy(&listener->sessions);
switch_thread_rwlock_unlock(listener->session_rwlock);
switch_thread_rwlock_unlock(listener->rwlock);
switch_memory_pool_t *pool = listener->pool;
switch_core_destroy_memory_pool(&pool);
}
-
}
static switch_status_t state_handler(switch_core_session_t *session)