From 426052a2751f05e3943d7c11459b9b55bb7a2243 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:34:58 +0200 Subject: [PATCH] Retrieve insert token by image ID. --- src/main/java/net/pterodactylus/sone/core/ImageInserter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/ImageInserter.java b/src/main/java/net/pterodactylus/sone/core/ImageInserter.java index 930fc48..b4421ce 100644 --- a/src/main/java/net/pterodactylus/sone/core/ImageInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/ImageInserter.java @@ -93,7 +93,7 @@ public class ImageInserter { * The image being inserted */ public void cancelImageInsert(Image image) { - InsertToken insertToken = insertTokens.remove(image); + InsertToken insertToken = insertTokens.remove(image.getId()); if (insertToken == null) { return; } -- 2.7.4