From f1032a3361ff1b4a43d94a84169e9fcafae4afff Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Jun 2015 23:36:07 +0200 Subject: [PATCH] Use a real request client for image inserts --- .../java/net/pterodactylus/sone/core/FreenetInterface.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.7.4