From 3314631259fa32b986723da3e2abe3606a2dbdc2 Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Thu, 5 Aug 2021 16:24:41 +0000 Subject: [PATCH] fix: make closeAsync don't interrupt running thread --- gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java b/gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java index 4eb47e756..aeeab82b2 100644 --- a/gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java +++ b/gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java @@ -328,7 +328,7 @@ public ApiFuture closeAsync() { } // Clean up accounting - scheduledFuture.cancel(true); + scheduledFuture.cancel(false); currentBatcherReference.closed = true; currentBatcherReference.clear();