From 9fad23a9e13cf8120cd514447fd4d40465f9fedd Mon Sep 17 00:00:00 2001 From: Matthieu Bollot Date: Fri, 18 Oct 2024 14:56:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat:=20handle=20interruptedExcepti?= =?UTF-8?q?on=20and=20stop=20thread?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dossierfacile/common/service/DocumentHelperServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dossierfacile-common-library/src/main/java/fr/dossierfacile/common/service/DocumentHelperServiceImpl.java b/dossierfacile-common-library/src/main/java/fr/dossierfacile/common/service/DocumentHelperServiceImpl.java index 2ff4dd222..f4beac586 100644 --- a/dossierfacile-common-library/src/main/java/fr/dossierfacile/common/service/DocumentHelperServiceImpl.java +++ b/dossierfacile-common-library/src/main/java/fr/dossierfacile/common/service/DocumentHelperServiceImpl.java @@ -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); }