Sone Inserters are indexed by Sones, not by IDs.
[Sone.git] / 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");
        }