From 102382a92bd1fda430a0bd882b2e065426a48e64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Apr 2011 06:35:28 +0200 Subject: [PATCH] Delete temporary image before removing image. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.7.4