Use a real request client for image inserts purge-db4o
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Jun 2015 21:36:07 +0000 (23:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Jun 2015 21:36:07 +0000 (23:36 +0200)
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java

index cfc1309..4ee3926 100644 (file)
@@ -87,6 +87,18 @@ public class FreenetInterface {
        /** The not-Sone-related USK callbacks. */
        private final Map<FreenetURI, USKCallback> uriUskCallbacks = Collections.synchronizedMap(new HashMap<FreenetURI, USKCallback>());
 
+       private final RequestClient imageInserts = new RequestClient() {
+               @Override
+               public boolean persistent() {
+                       return false;
+               }
+
+               @Override
+               public boolean realTimeFlag() {
+                       return true;
+               }
+       };
+
        /**
         * Creates a new Freenet interface.
         *
@@ -460,7 +472,7 @@ public class FreenetInterface {
 
                @Override
                public RequestClient getRequestClient() {
-                       return clientPutter.getClient();
+                       return imageInserts;
                }
 
                @Override