Lock Sones before starting the rescue.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 20:02:10 +0000 (21:02 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 20:02:10 +0000 (21:02 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 0f95d56..d2c1420 100644 (file)
@@ -712,6 +712,7 @@ public class Core implements IdentityListener {
                                                return;
                                        }
                                        logger.log(Level.INFO, "Trying to restore Sone from Freenet…");
+                                       lockSone(sone);
                                        long edition = sone.getLatestEdition();
                                        while (!stopped && (edition >= 0) && isSoneRescueMode()) {
                                                logger.log(Level.FINE, "Downloading edition " + edition + "…");