diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-09 04:39:28 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-09 04:39:28 +0200 |
commit | d8dda96481a9614b5d7550643f794a9831c6b474 (patch) | |
tree | 95eda609182d89068aea0b5a02b6ced4fe09da36 /src/Core | |
parent | f50844eb7f9772f865ce9f272eadb15943319885 (diff) | |
download | mad-d8dda96481a9614b5d7550643f794a9831c6b474.tar mad-d8dda96481a9614b5d7550643f794a9831c6b474.zip |
Rufe sendReceive() nur auf, wenn poll() f?r eine Verbindung erfolgreich war
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/ConnectionManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<Net::ServerConnection*>& con if((*con)->isConnected()) { std::map<int,const short*>::iterator events = pollfdMap.find((*con)->getSocket()); - if(events != pollfdMap.end()) + if(events != pollfdMap.end() && *events->second) (*con)->sendReceive(*events->second); - else - (*con)->sendReceive(); ++con; } |