Author: toad
Date: 2008-07-12 02:09:57 +0000 (Sat, 12 Jul 2008)
New Revision: 21091

Modified:
   
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Slightly better paranoia

Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-07-12 02:00:58 UTC (rev 21090)
+++ 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-07-12 02:09:57 UTC (rev 21091)
@@ -247,7 +247,9 @@
        ChosenRequest removeFirst(int fuzz, RandomSource random, 
OfferedKeysList[] offeredKeys, RequestStarter starter, 
ClientRequestSchedulerNonPersistent schedTransient, boolean transientOnly, 
boolean notTransient, short maxPrio, int retryCount, ClientContext context, 
ObjectContainer container) {
                SendableRequest req = removeFirstInner(fuzz, random, 
offeredKeys, starter, schedTransient, transientOnly, notTransient, maxPrio, 
retryCount, context, container);
                if(isInsertScheduler && req instanceof SendableGet) {
-                       throw new IllegalStateException("removeFirstInner 
returned a SendableGet on an insert scheduler!!");
+                       IllegalStateException e = new 
IllegalStateException("removeFirstInner returned a SendableGet on an insert 
scheduler!!");
+                       req.internalError(null, e, sched, container, context, 
req.persistent());
+                       throw e;
                }
                return maybeMakeChosenRequest(req, container, context);
        }


Reply via email to