mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-26 23:18:53 +00:00
cancel requests if interrupted
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user