Skip to content

Commit d2fcdab

Browse files
author
Valentin Popov
committed
(cherry picked from commit ff401f9)
1 parent e07b0b2 commit d2fcdab

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/main/java/com/microsoft/graph/httpcore/AuthenticationHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public Response intercept(@Nonnull final Chain chain) throws IOException {
6262
.build());
6363
}
6464
} catch (InterruptedException | ExecutionException ex) {
65+
if (ex instanceof InterruptedException)
66+
Thread.currentThread().interrupt();
6567
throw new IOException(ex);
6668
}
6769
}

src/main/java/com/microsoft/graph/httpcore/RetryHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ && checkStatus(statusCode) && isBuffered(request)
111111
try {
112112
Thread.sleep(retryInterval);
113113
} catch (InterruptedException e) {
114+
Thread.currentThread().interrupt();
114115
logger.logError("error retrying the request", e);
115116
}
116117
}

src/main/java/com/microsoft/graph/tasks/LargeFileUploadTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public LargeFileUploadResult<UploadType> upload(@Nullable final int chunkSize, @
252252
try {
253253
return uploadAsync(chunkSize, options, progressCallback).get();
254254
} catch (InterruptedException ex) {
255+
Thread.currentThread().interrupt();
255256
throw new ClientException("The request was interrupted", ex);
256257
} catch (ExecutionException ex) {
257258
throw new ClientException("Error while executing the request", ex);

0 commit comments

Comments
 (0)