Author: nextgens
Date: 2007-12-17 00:46:33 +0000 (Mon, 17 Dec 2007)
New Revision: 16640

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
PacketThrottle: we synchronize on set, do it on get too

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2007-12-17 
00:39:23 UTC (rev 16639)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2007-12-17 
00:46:33 UTC (rev 16640)
@@ -117,7 +117,7 @@
                return lastScheduledDelay;
        }

-       public long getRoundTripTime() {
+       public synchronized long getRoundTripTime() {
                return _roundTripTime;
        }



Reply via email to