Author: toad
Date: 2008-02-28 22:26:54 +0000 (Thu, 28 Feb 2008)
New Revision: 18235

Modified:
   trunk/freenet/src/freenet/client/async/ClientGetter.java
Log:
Same for failure callback

Modified: trunk/freenet/src/freenet/client/async/ClientGetter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientGetter.java    2008-02-28 
22:26:25 UTC (rev 18234)
+++ trunk/freenet/src/freenet/client/async/ClientGetter.java    2008-02-28 
22:26:54 UTC (rev 18235)
@@ -201,10 +201,16 @@
                                e = new FetchException(e, 
FetchException.ALL_DATA_NOT_FOUND);
                        Logger.minor(this, "onFailure("+e+", "+state+") on 
"+this+" for "+uri, e);
                        final FetchException e1 = e;
-                       ctx.executor.execute(new Runnable() {
+                       ctx.executor.execute(new PrioRunnable() {
                                public void run() {
                                        clientCallback.onFailure(e1, 
ClientGetter.this);
                                }
+                               public int getPriority() {
+                                       if(getPriorityClass() <= 
RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS)
+                                               return 
NativeThread.NORM_PRIORITY;
+                                       else
+                                               return 
NativeThread.LOW_PRIORITY;
+                               }
                        }, "ClientGetter onFailure callback");

                        return;


Reply via email to