From: Anthony Minessale Date: Tue, 31 Mar 2009 16:10:20 +0000 (+0000) Subject: shutdown the queue when destroying the event consumer obj in c++ X-Git-Tag: v1.0.4~1328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=608ca822f15c30e4f6711c385bbd33de3798f466;p=thirdparty%2Ffreeswitch.git shutdown the queue when destroying the event consumer obj in c++ git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12851 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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); }