From da8bf1cd6228fb7829051546ce226cbc8369663d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 25 Apr 2012 13:22:17 +0200 Subject: [PATCH] Add helper variable --- src/filter_frontend_net.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4