Hand in freenet interface to Sone inserter.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:42:06 +0000 (16:42 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:42:06 +0000 (16:42 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index 6213e05..ddd3524 100644 (file)
@@ -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);
                }
index 75fda7c..b779b2e 100644 (file)
@@ -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;
        }