mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Move remove code from shutDown to onP2pNetworkAndWalletReady
This commit is contained in:
parent
75c85f3d85
commit
6162e6d0d7
1 changed files with 6 additions and 4 deletions
|
@ -148,10 +148,6 @@ public class XmrTxProofService implements AssetTxProofService {
|
|||
|
||||
@Override
|
||||
public void shutDown() {
|
||||
if (p2pNetworkAndWalletReady != null) {
|
||||
p2pNetworkAndWalletReady.removeListener(p2pNetworkAndWalletReadyListener);
|
||||
}
|
||||
|
||||
servicesByTradeId.values().forEach(XmrTxProofRequestsPerTrade::terminate);
|
||||
servicesByTradeId.clear();
|
||||
}
|
||||
|
@ -162,6 +158,12 @@ public class XmrTxProofService implements AssetTxProofService {
|
|||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
private void onP2pNetworkAndWalletReady() {
|
||||
if (p2pNetworkAndWalletReady != null) {
|
||||
p2pNetworkAndWalletReady.removeListener(p2pNetworkAndWalletReadyListener);
|
||||
p2pNetworkAndWalletReady = null;
|
||||
p2pNetworkAndWalletReadyListener = null;
|
||||
}
|
||||
|
||||
if (!preferences.findAutoConfirmSettings("XMR").isPresent()) {
|
||||
log.error("AutoConfirmSettings is not present");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue