cancel requests if interrupted

This commit is contained in:
Athou
2026-10-13 11:12:46 +02:00
parent 26cce1faac
commit f72bd4cc5c
2 changed files with 10 additions and 9 deletions

View File

@@ -237,6 +237,7 @@ public class HttpGetter {
contentType,
urlAfterRedirect);
} catch (InterruptedException e) {
future.cancel(true);
Thread.currentThread().interrupt();
throw new RuntimeException("interrupted while fetching " + request.getUrl(), e);
} catch (ExecutionException e) {