Add helper variable
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Apr 2012 11:22:17 +0000 (13:22 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Apr 2012 11:22:17 +0000 (13:22 +0200)
src/filter_frontend_net.cpp

index c0f27ef..21f8e8b 100644 (file)
@@ -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;