From 1d412abec8c166f03b31af501b7549e8b7420983 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 13 Oct 2006 19:28:48 +0000 Subject: Connections are now kept until all pending output has been sent, even if the disconnected flag has been set. --- src/connectionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { (*i)->writeOutput(); } - if( (*i)->needDisconnect() ) + if( (*i)->needDisconnect() && !(*i)->hasOutput() ) { int prt = (*i)->getSocket(); close( prt ); -- cgit v1.2.3