Skip to content

Commit ba61656

Browse files
authored
Merge pull request #163 from sthuebner/shutdownNow
RefreshableResponseProvider.shutdown without waiting for queued tasks
2 parents f9724da + 9a6ef82 commit ba61656

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

here-oauth-client/src/main/java/com/here/account/util/RefreshableResponseProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ public interface ExpiringResponse {
199199
}
200200

201201
/**
202-
* Shutdown the background threads
202+
* Shutdown the background threads without waiting for queued tasks
203203
*/
204204
public void shutdown() {
205205
if (started) {
206206
try {
207207
LOG.info("Shutting down refresh token thread");
208-
scheduledExecutorService.shutdown();
208+
scheduledExecutorService.shutdownNow();
209209
} finally {
210210
started = false;
211211
}

0 commit comments

Comments
 (0)