Skip to content

Commit

Permalink
Avoid repeated distributed database shutdowns.
Browse files Browse the repository at this point in the history
  • Loading branch information
timw authored and pkendall64 committed Oct 31, 2022
1 parent d533fc8 commit 99a0bfb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,10 @@ public void shutdown() {
shutdown(true);
}

public void shutdown(boolean wait) {
public synchronized void shutdown(boolean wait) {
if (!running) {
return;
}
waitPending();
running = false;

Expand Down

0 comments on commit 99a0bfb

Please sign in to comment.