From: David ‘Bombe’ Roden Date: Wed, 13 Apr 2011 03:54:31 +0000 (+0200) Subject: Cancel image insert when deleting a temporary image. X-Git-Tag: beta-freefall-0.6.2-1~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=520613dd07921f1f9c5f7577ff5dc8e2f95db900;p=Sone.git Cancel image insert when deleting a temporary image. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index f8cee11..7183063 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1931,6 +1931,10 @@ public class Core implements IdentityListener, UpdateListener, ImageInsertListen synchronized (temporaryImages) { temporaryImages.remove(imageId); } + Image image = getImage(imageId, false); + if (image != null) { + imageInserter.cancelImageInsert(image); + } } /**