mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Move remove code from shutDown to onP2pNetworkAndWalletReady
This commit is contained in:
parent
75c85f3d85
commit
6162e6d0d7
@ -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…
Reference in New Issue
Block a user