File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
google-cloud-firestore/src/main/java/com/google/cloud/firestore/spi/v1 Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 6666import java .io .IOException ;
6767import java .util .Collections ;
6868import java .util .concurrent .ScheduledExecutorService ;
69+ import java .util .concurrent .TimeUnit ;
6970
7071/**
7172 * GRPC client implementation of the Firestore RPC methods. Exposes FirestoreOptions on top of the
@@ -152,6 +153,9 @@ public void close() throws Exception {
152153 for (BackgroundResource resource : clientContext .getBackgroundResources ()) {
153154 resource .close ();
154155 }
156+ for (BackgroundResource resource : clientContext .getBackgroundResources ()) {
157+ resource .awaitTermination (1 , TimeUnit .SECONDS );
158+ }
155159 executorFactory .release (executor );
156160 }
157161
You can’t perform that action at this time.
0 commit comments