diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 406bcb0a26..46f2168550 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -97,6 +97,10 @@ SWITCH_DECLARE_CONSTRUCTOR EventConsumer::~EventConsumer() switch_event_unbind(&node); } + if (events) { + switch_queue_interrupt_all(events); + } + switch_core_destroy_memory_pool(&pool); }