aboutsummaryrefslogtreecommitdiff
path: root/src/connectionmanager.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-10-13 19:28:48 +0000
committerMike Buland <eichlan@xagasoft.com>2006-10-13 19:28:48 +0000
commit1d412abec8c166f03b31af501b7549e8b7420983 (patch)
tree77d63ecdbef18a05d161eff82b0ce75a0ee989e8 /src/connectionmanager.cpp
parenta77e41eee42b99282c05d268479ba5ebb11dc095 (diff)
downloadlibbu++-1d412abec8c166f03b31af501b7549e8b7420983.tar.gz
libbu++-1d412abec8c166f03b31af501b7549e8b7420983.tar.bz2
libbu++-1d412abec8c166f03b31af501b7549e8b7420983.tar.xz
libbu++-1d412abec8c166f03b31af501b7549e8b7420983.zip
Connections are now kept until all pending output has been sent, even if the
disconnected flag has been set.
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 );