Author: toad
Date: 2008-02-08 17:57:48 +0000 (Fri, 08 Feb 2008)
New Revision: 17701

Modified:
   trunk/freenet/src/freenet/io/comm/MessageCore.java
Log:
Just maybe fix the bandwidth-goes-to-zero-after-N-hours bug.


Modified: trunk/freenet/src/freenet/io/comm/MessageCore.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/MessageCore.java  2008-02-08 17:48:45 UTC 
(rev 17700)
+++ trunk/freenet/src/freenet/io/comm/MessageCore.java  2008-02-08 17:57:48 UTC 
(rev 17701)
@@ -452,7 +452,7 @@
                                        // here - bug discovered by Mason
                                    while(!(filter.matched() || 
(filter.droppedConnection() != null))) {
                                                long wait = 
filter.getTimeout()-System.currentTimeMillis();
-                                               if(wait < 0)
+                                               if(wait <= 0)
                                                        break;
                                                filter.wait(wait);
                                        }


Reply via email to