Sone Inserters are indexed by Sones, not by IDs.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 05:46:43 +0000 (06:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 05:46:43 +0000 (06:46 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index a7623b9..dc6516d 100644 (file)
@@ -564,7 +564,7 @@ public class Core implements IdentityListener {
                                return;
                        }
                        localSones.remove(sone.getId());
-                       soneInserters.remove(sone.getId()).stop();
+                       soneInserters.remove(sone).stop();
                }
                identityManager.removeContext((OwnIdentity) sone.getIdentity(), "Sone");
        }