From: David ‘Bombe’ Roden Date: Thu, 11 Jun 2015 21:36:07 +0000 (+0200) Subject: Use a real request client for image inserts X-Git-Tag: 0.9-rc1^2~4^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=refs%2Fheads%2Fpurge-db4o;p=Sone.git Use a real request client for image inserts --- diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index cfc1309..4ee3926 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -87,6 +87,18 @@ public class FreenetInterface { /** The not-Sone-related USK callbacks. */ private final Map uriUskCallbacks = Collections.synchronizedMap(new HashMap()); + 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