Skip to content

Commit

Permalink
fix #1283 remove thumbnail_...
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Sep 20, 2017
1 parent 5c95760 commit 8fdf384
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ public boolean generate(final String thumbnailId, final File outputFile) {
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;
}
});

Expand Down

0 comments on commit 8fdf384

Please sign in to comment.