Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ final class MultiplexedSessionMaintainer {
this.clock = clock;
}

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

void stop() {
private synchronized void stop() {
if (this.scheduledFuture != null) {
this.scheduledFuture.cancel(false);
}
Expand Down
Loading