From: David ‘Bombe’ Roden Date: Wed, 3 Dec 2014 05:30:29 +0000 (+0100) Subject: Use local Sone with the Sone inserters. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=faf8ac927b8e188ba791aab1eec2574a4faa8bef;p=Sone.git Use local Sone with the Sone inserters. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index ba2b15c..2d23de3 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -152,7 +152,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, /** Sone inserters. */ /* synchronize access on this on sones. */ - private final Map soneInserters = new HashMap(); + private final Map soneInserters = new HashMap(); /** Sone rescuers. */ /* synchronize access on this on sones. */ @@ -614,7 +614,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, return null; } logger.info(String.format("Adding Sone from OwnIdentity: %s", ownIdentity)); - Sone sone = database.registerLocalSone(ownIdentity); + LocalSone sone = database.registerLocalSone(ownIdentity); SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, ownIdentity.getId()); eventBus.register(soneInserter); synchronized (soneInserters) { @@ -1250,7 +1250,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, public void serviceStop() { localElementTicker.shutdownNow(); synchronized (soneInserters) { - for (Entry soneInserter : soneInserters.entrySet()) { + for (Entry soneInserter : soneInserters.entrySet()) { soneInserter.getValue().stop(); } }