From d8dda96481a9614b5d7550643f794a9831c6b474 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 9 Sep 2008 04:39:28 +0200 Subject: Rufe sendReceive() nur auf, wenn poll() f?r eine Verbindung erfolgreich war --- src/Core/ConnectionManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Core') diff --git a/src/Core/ConnectionManager.cpp b/src/Core/ConnectionManager.cpp index 2b7c8d1..c7a2f42 100644 --- a/src/Core/ConnectionManager.cpp +++ b/src/Core/ConnectionManager.cpp @@ -92,10 +92,8 @@ void ConnectionManager::handleConnections(std::list& con if((*con)->isConnected()) { std::map::iterator events = pollfdMap.find((*con)->getSocket()); - if(events != pollfdMap.end()) + if(events != pollfdMap.end() && *events->second) (*con)->sendReceive(*events->second); - else - (*con)->sendReceive(); ++con; } -- cgit v1.2.3