From: David ‘Bombe’ Roden Date: Wed, 13 Apr 2011 04:34:58 +0000 (+0200) Subject: Retrieve insert token by image ID. X-Git-Tag: beta-freefall-0.6.2-1~13 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=426052a2751f05e3943d7c11459b9b55bb7a2243;p=Sone.git Retrieve insert token by image ID. --- 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; }