Retrieve insert token by image ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:34:58 +0000 (06:34 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:41:30 +0000 (06:41 +0200)
src/main/java/net/pterodactylus/sone/core/ImageInserter.java

index 930fc48..b4421ce 100644 (file)
@@ -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;
                }