From: David ‘Bombe’ Roden Date: Sat, 26 Jan 2013 00:03:01 +0000 (+0100) Subject: Update a newly parsed Sone’s status directly after parsing. X-Git-Tag: 0.8.5^2~3^2~48 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0ff08288e8afb9bd1b36967bbf0a64e3972cf114;p=Sone.git Update a newly parsed Sone’s status directly after parsing. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 388d804..abdea0d 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -166,6 +166,7 @@ public class SoneDownloader extends AbstractService { Sone parsedSone = parseSone(sone, fetchResults.getFetchResult(), fetchResults.getFreenetUri()); if (parsedSone != null) { if (!fetchOnly) { + parsedSone.setStatus((parsedSone.getTime() == 0) ? SoneStatus.unknown : SoneStatus.idle); core.updateSone(parsedSone); addSone(parsedSone); }