From: David ‘Bombe’ Roden Date: Wed, 10 Jul 2013 06:00:09 +0000 (+0200) Subject: Fix rescue mode. X-Git-Tag: 0.8.7^2~38 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4850adf910f409f122e3df9cd0be1d0dad9e19e5;p=Sone.git Fix rescue mode. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7b4bc4b..5018b25 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1052,6 +1052,14 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, synchronized (sones) { sone.setOptions(storedSone.get().getOptions()); sone.setKnown(storedSone.get().isKnown()); + sone.setStatus((sone.getTime() == 0) ? SoneStatus.unknown : SoneStatus.idle); + if (sone.isLocal()) { + soneInserters.remove(storedSone.get()).stop(); + SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, sone); + soneInserters.put(sone, soneInserter); + soneInserter.start(); + touchConfiguration(); + } sones.put(sone.getId(), sone); } }