Start Sone inserter after the Sone has been loaded.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 12 Nov 2010 21:19:04 +0000 (22:19 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 12 Nov 2010 21:19:04 +0000 (22:19 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 895f45e..668a938 100644 (file)
@@ -575,9 +575,9 @@ public class Core implements IdentityListener {
                        localSones.put(ownIdentity.getId(), sone);
                        SoneInserter soneInserter = new SoneInserter(this, freenetInterface, sone);
                        soneInserters.put(sone, soneInserter);
-                       soneInserter.start();
                        setSoneStatus(sone, SoneStatus.idle);
                        loadSone(sone);
+                       soneInserter.start();
                        new Thread(new Runnable() {
 
                                @Override