From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 14:42:06 +0000 (+0200) Subject: Hand in freenet interface to Sone inserter. X-Git-Tag: 0.1-RC1~458 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=66771252598821e86477e5c98392c444fce05569;p=Sone.git Hand in freenet interface to Sone inserter. --- 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; }