From 66771252598821e86477e5c98392c444fce05569 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 16:42:06 +0200 Subject: [PATCH] Hand in freenet interface to Sone inserter. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 6213e05..ddd3524 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -116,7 +116,7 @@ public class Core extends AbstractService { */ public void addSone(Sone sone) { if (localSones.add(sone)) { - SoneInserter soneInserter = new SoneInserter(sone); + SoneInserter soneInserter = new SoneInserter(freenetInterface, sone); soneInserter.start(); soneInserters.put(sone, soneInserter); } diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 75fda7c..b779b2e 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -33,10 +33,12 @@ public class SoneInserter extends AbstractService { /** * Creates a new Sone inserter. * + * @param freenetInterface + * The freenet interface * @param sone * The Sone to insert */ - public SoneInserter(Sone sone) { + public SoneInserter(FreenetInterface freenetInterface, Sone sone) { super("Sone Inserter for “" + sone.getName() + "”"); this.sone = sone; } -- 2.7.4