org/sonews/daemon/Connections.java
changeset 25 dd05c3f2fa24
parent 15 f2293e8566f5
child 28 15d14b110240
     1.1 --- a/org/sonews/daemon/Connections.java	Wed Aug 26 17:04:04 2009 +0200
     1.2 +++ b/org/sonews/daemon/Connections.java	Fri Dec 25 15:42:46 2009 +0100
     1.3 @@ -134,7 +134,8 @@
     1.4          while (iter.hasNext())
     1.5          {
     1.6            conn = iter.next();
     1.7 -          if((System.currentTimeMillis() - conn.getLastActivity()) > timeoutMillis)
     1.8 +          if((System.currentTimeMillis() - conn.getLastActivity()) > timeoutMillis
     1.9 +              && conn.getBuffers().isOutputBufferEmpty())
    1.10            {
    1.11              // A connection timeout has occurred so purge the connection
    1.12              iter.remove();