Author: nextgens
Date: 2006-12-06 06:40:50 +0000 (Wed, 06 Dec 2006)
New Revision: 11269

Modified:
   trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
Log:
Reinstate the synchronisation on USM.getUnclaimedFIFOMessageCounts()


Modified: trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketManager.java     2006-12-06 
04:59:19 UTC (rev 11268)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketManager.java     2006-12-06 
06:40:50 UTC (rev 11269)
@@ -682,7 +682,9 @@
         * @return the number of received messages that are currently unclaimed
         */
        public int getUnclaimedFIFOSize() {
-               return _unclaimed.size();
+               synchronized (_filters){
+                       return _unclaimed.size();
+               }
        }

        public Map getUnclaimedFIFOMessageCounts() {


Reply via email to