Skip to content

Commit 71c2da0

Browse files
committed
Re-interrupt the thread after InterruptedException
1 parent 7822879 commit 71c2da0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gooddata-java/src/main/java/com/gooddata/sdk/service/AbstractService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ final <R> R poll(final PollHandler<?,R> handler, long timeout, final TimeUnit un
6666
try {
6767
Thread.sleep(settings.getPollSleep());
6868
} catch (InterruptedException e) {
69+
Thread.currentThread().interrupt();
6970
throw new GoodDataException("interrupted");
7071
}
7172
}

0 commit comments

Comments
 (0)