From 4850adf910f409f122e3df9cd0be1d0dad9e19e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 10 Jul 2013 08:00:09 +0200 Subject: [PATCH] Fix rescue mode. --- src/main/java/net/pterodactylus/sone/core/Core.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } } -- 2.7.4