mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-20 13:54:32 +01:00
Add shutDown method to ClockWatcher and shut it down at shutdown
This commit is contained in:
parent
b61d64e1ea
commit
cf9e49134a
2 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,7 @@ public class ClockWatcher {
|
|||
}
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
public void shutDown() {
|
||||
timer.stop();
|
||||
timer = null;
|
||||
counter = 0;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue