From: David ‘Bombe’ Roden Date: Wed, 20 Nov 2019 18:17:30 +0000 (+0100) Subject: 🐛 Don’t save ancient Sone objects X-Git-Tag: v81^2~29 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=228a168b0430abaded53ee211f83af717cd259f6;p=Sone.git 🐛 Don’t save ancient Sone objects --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index d79cd40..a8d753e 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1370,7 +1370,8 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, synchronized (soneInserters) { for (Entry soneInserter : soneInserters.entrySet()) { soneInserter.getValue().stop(); - saveSone(soneInserter.getKey()); + Sone latestSone = getLocalSone(soneInserter.getKey().getId()); + saveSone(latestSone); } } synchronized (soneRescuers) {