Author: toad
Date: 2008-12-19 19:15:41 +0000 (Fri, 19 Dec 2008)
New Revision: 24632

Modified:
   
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Maybe fix the Leftover RegisterMe errors


Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-12-19 19:02:58 UTC (rev 24631)
+++ 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-12-19 19:15:41 UTC (rev 24632)
@@ -600,6 +600,10 @@
                                }
                                // FIXME remove the leftover/old core handling 
at some point, an NPE is acceptable long-term.
                                if(reg.core != ClientRequestSchedulerCore.this) 
{
+                                       if(!container.ext().isStored(reg)) {
+                                               if(logMINOR) Logger.minor(this, 
"Already deleted RegisterMe "+reg+" - skipping");
+                                               continue;
+                                       }
                                        if(reg.core == null) {
                                                Logger.error(this, "Leftover 
RegisterMe "+reg+" : core already deleted. THIS IS AN ERROR unless you have 
seen \"Old core not active\" messages before this point.");
                                                container.delete(reg);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to