This repository was archived by the owner on Sep 16, 2023. It is now read-only.

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,13 @@ public UnaryCallable<DeleteClientTlsPolicyRequest, Operation> deleteClientTlsPol
873873

874874
@Override
875875
public final void close() {
876-
shutdown();
876+
try {
877+
backgroundResources.close();
878+
} catch (RuntimeException e) {
879+
throw e;
880+
} catch (Exception e) {
881+
throw new IllegalStateException("Failed to close resource", e);
882+
}
877883
}
878884

879885
@Override

0 commit comments

Comments
 (0)