Require a local Sone when rescuing.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneRescuer.java
index f45e351..6f8d6c8 100644 (file)
@@ -17,6 +17,7 @@
 
 package net.pterodactylus.sone.core;
 
+import net.pterodactylus.sone.data.LocalSone;
 import net.pterodactylus.sone.data.Sone;
 import net.pterodactylus.util.service.AbstractService;
 import freenet.keys.FreenetURI;
@@ -36,7 +37,7 @@ public class SoneRescuer extends AbstractService {
        private final SoneDownloader soneDownloader;
 
        /** The Sone being rescued. */
-       private final Sone sone;
+       private final LocalSone sone;
 
        /** Whether the rescuer is currently fetching a Sone. */
        private volatile boolean fetching;
@@ -57,7 +58,7 @@ public class SoneRescuer extends AbstractService {
         * @param sone
         *            The Sone to rescue
         */
-       public SoneRescuer(Core core, SoneDownloader soneDownloader, Sone sone) {
+       public SoneRescuer(Core core, SoneDownloader soneDownloader, LocalSone sone) {
                super("Sone Rescuer for " + sone.getName());
                this.core = core;
                this.soneDownloader = soneDownloader;