From: Adam Dickmeiss Date: Wed, 25 Apr 2012 11:22:17 +0000 (+0200) Subject: Add helper variable X-Git-Tag: v1.3.34~8 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=da8bf1cd6228fb7829051546ce226cbc8369663d;p=metaproxy-moved-to-github.git Add helper variable --- diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index c0f27ef..21f8e8b 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -436,7 +436,8 @@ void mp::filter::FrontendNet::process(Package &package) const } while (m_p->mySocketManager.processEvent() > 0) { - if (m_p->mySocketManager.getNumberOfObservers() <= 1) + int no = m_p->mySocketManager.getNumberOfObservers(); + if (no <= 1) break; if (tt && tt->timeout()) break;