Add shutDown method to ClockWatcher and shut it down at shutdown

This commit is contained in:
chimp1984 2021-11-02 12:58:19 +01:00
parent b61d64e1ea
commit cf9e49134a
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 3 additions and 1 deletions

View file

@ -79,7 +79,7 @@ public class ClockWatcher {
}
}
public void stop() {
public void shutDown() {
timer.stop();
timer = null;
counter = 0;

View file

@ -33,6 +33,7 @@ import bisq.core.trade.txproof.xmr.XmrTxProofService;
import bisq.network.p2p.P2PService;
import bisq.common.ClockWatcher;
import bisq.common.UserThread;
import bisq.common.app.AppModule;
import bisq.common.config.BisqHelpFormatter;
@ -228,6 +229,7 @@ public abstract class BisqExecutable implements GracefulShutDownHandler, BisqSet
}
try {
injector.getInstance(ClockWatcher.class).shutDown();
injector.getInstance(OpenBsqSwapOfferService.class).shutDown();
injector.getInstance(PriceFeedService.class).shutDown();
injector.getInstance(ArbitratorManager.class).shutDown();