Skip to content

Commit

Permalink
✨ Feat: handle interruptedException and stop thread
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboll committed Oct 18, 2024
1 parent 35c7761 commit 9fad23a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public InputStream convertHeicToJpg(InputStream heicInputStream) throws IOExcept
throw new IOException("Erreur lors de la conversion HEIC en JPG avec ImageMagick.");
}
} catch (InterruptedException e) {
log.error("Interrupted exception", e);
Thread.currentThread().interrupt();
throw new RuntimeException(e);
}

Expand Down

0 comments on commit 9fad23a

Please sign in to comment.