From: David ‘Bombe’ Roden Date: Wed, 13 Apr 2011 04:35:28 +0000 (+0200) Subject: Delete temporary image before removing image. X-Git-Tag: beta-freefall-0.6.2-1~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=102382a92bd1fda430a0bd882b2e065426a48e64;p=Sone.git Delete temporary image before removing image. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 91a04d3..f5d695c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1901,11 +1901,11 @@ public class Core implements IdentityListener, UpdateListener, ImageInsertListen */ public void deleteImage(Image image) { Validation.begin().isNotNull("Image", image).check().is("Local Sone", isLocalSone(image.getSone())).check(); + deleteTemporaryImage(image.getId()); image.getAlbum().removeImage(image); synchronized (images) { images.remove(image.getId()); } - deleteTemporaryImage(image.getId()); saveSone(image.getSone()); }