fix #1283 remove thumbnail_...

This commit is contained in:
Shinsuke Sugaya 2017-09-20 23:08:53 +09:00
parent cf40830d0d
commit 2cdb2d518d

View file

@ -114,11 +114,12 @@ public class CommandGenerator extends BaseThumbnailGenerator {
return true;
} catch (final Exception e) {
logger.warn("Failed to process ", e);
updateThumbnailField(thumbnailId, StringUtil.EMPTY);
return false;
} finally {
if (tempFile != null && !tempFile.delete()) {
logger.debug("Failed to delete " + tempFile.getAbsolutePath());
}
updateThumbnailField(thumbnailId, StringUtil.EMPTY);
return false;
}
});