From 102cab997609bf96205b0831eb71fc6fe9bb732a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 17 Apr 2012 14:46:38 +0200 Subject: [PATCH] Frontend_net exits when all sessions have terminated --- src/filter_frontend_net.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index c7450c1..c0f27ef 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -126,7 +126,7 @@ namespace metaproxy_1 { void failNotify(); void timeoutNotify(); - void connectNotify(); + void connectNotify(); private: mp::ThreadPoolSocketObserver *m_thread_pool_observer; const mp::Package *m_package; @@ -436,6 +436,8 @@ void mp::filter::FrontendNet::process(Package &package) const } while (m_p->mySocketManager.processEvent() > 0) { + if (m_p->mySocketManager.getNumberOfObservers() <= 1) + break; if (tt && tt->timeout()) break; } -- 1.7.10.4