Author: toad
Date: 2008-05-31 15:52:34 +0000 (Sat, 31 May 2008)
New Revision: 20167

Modified:
   branches/db4o/freenet/src/freenet/node/SendableGet.java
Log:
simplify code slightly

Modified: branches/db4o/freenet/src/freenet/node/SendableGet.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/SendableGet.java     2008-05-31 
15:29:20 UTC (rev 20166)
+++ branches/db4o/freenet/src/freenet/node/SendableGet.java     2008-05-31 
15:52:34 UTC (rev 20167)
@@ -144,12 +144,7 @@
        }

        public void internalError(final Object keyNum, final Throwable t, final 
RequestScheduler sched) {
-               sched.getDatabaseExecutor().execute(new Runnable() {
-                       public void run() {
-                               onFailure(new 
LowLevelGetException(LowLevelGetException.INTERNAL_ERROR, t.getMessage(), t), 
keyNum, sched);
-                       }
-               }, NativeThread.MAX_PRIORITY, // ensure this is run before the 
callback to remove the request from the running requests list 
-               "Internal error");
+               sched.callFailure(this, new 
LowLevelGetException(LowLevelGetException.INTERNAL_ERROR, t.getMessage(), t), 
keyNum, NativeThread.MAX_PRIORITY, "Internal error");
        }

        /**


Reply via email to