]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
shutdown the queue when destroying the event consumer obj in c++
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 31 Mar 2009 16:10:20 +0000 (16:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 31 Mar 2009 16:10:20 +0000 (16:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12851 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index 406bcb0a267c886f26e369de05da25ba08752e63..46f2168550845180eae9f0d6b660117024536478 100644 (file)
@@ -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);
 }