Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 441b787

Browse files
authored
Merge branch 'main' into a66_a94
2 parents a328488 + d5d3975 commit 441b787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ final class MultiplexedSessionMaintainer {
562562
this.clock = clock;
563563
}
564564

565-
void start() {
565+
private synchronized void start() {
566566
// Schedule the maintainer to run once every ten minutes (by default).
567567
long loopFrequencyMillis =
568568
MultiplexedSessionDatabaseClient.this
@@ -577,7 +577,7 @@ void start() {
577577
this::maintain, loopFrequencyMillis, loopFrequencyMillis, TimeUnit.MILLISECONDS);
578578
}
579579

580-
void stop() {
580+
private synchronized void stop() {
581581
if (this.scheduledFuture != null) {
582582
this.scheduledFuture.cancel(false);
583583
}

0 commit comments

Comments
 (0)