fix #1283 remove thumbnail_...
This commit is contained in:
parent
cf40830d0d
commit
2cdb2d518d
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue