aboutsummaryrefslogtreecommitdiff
path: root/src/connectionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/connectionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connectionmanager.cpp b/src/connectionmanager.cpp
index cffdf29..fdc5f83 100644
--- a/src/connectionmanager.cpp
+++ b/src/connectionmanager.cpp
@@ -199,7 +199,7 @@ bool ConnectionManager::scanConnections( int nTimeout, bool bForceTimeout )
199 { 199 {
200 (*i)->writeOutput(); 200 (*i)->writeOutput();
201 } 201 }
202 if( (*i)->needDisconnect() ) 202 if( (*i)->needDisconnect() && !(*i)->hasOutput() )
203 { 203 {
204 int prt = (*i)->getSocket(); 204 int prt = (*i)->getSocket();
205 close( prt ); 205 close( prt );