Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 7c6c298

Browse files
authored
fix: make closeAsync don't interrupt running thread (#1446)
1 parent 4fb5a6c commit 7c6c298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public ApiFuture<Void> closeAsync() {
328328
}
329329

330330
// Clean up accounting
331-
scheduledFuture.cancel(true);
331+
scheduledFuture.cancel(false);
332332
currentBatcherReference.closed = true;
333333
currentBatcherReference.clear();
334334

0 commit comments

Comments
 (0)