From 7b655269bb7b35de2799b5ed46b175d5e2b40202 Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Fri, 19 Feb 2021 10:40:32 +0100 Subject: [PATCH] Fix: Interrupt the thread in QueuedThreadPoolExecutor. --- .../main/java/io/sentry/transport/QueuedThreadPoolExecutor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java b/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java index 5b6651b7ae..df8cef6b3d 100644 --- a/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java +++ b/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java @@ -80,6 +80,7 @@ void waitTillIdle(final long timeoutMillis) { unfinishedTasksCount.waitTillZero(timeoutMillis, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { logger.log(SentryLevel.ERROR, "Failed to wait till idle", e); + Thread.currentThread().interrupt(); } }