mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-13 11:01:08 -04:00
skip trade shutdown log when finalized in previous release
This commit is contained in:
parent
457518e3a9
commit
ea426f1109
1 changed files with 5 additions and 1 deletions
|
@ -907,6 +907,10 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean walletExistsNoSync() {
|
||||||
|
return xmrWalletService.walletExists(getWalletName());
|
||||||
|
}
|
||||||
|
|
||||||
public MoneroWallet createWallet() {
|
public MoneroWallet createWallet() {
|
||||||
synchronized (walletLock) {
|
synchronized (walletLock) {
|
||||||
if (walletExists()) throw new RuntimeException("Cannot create trade wallet because it already exists");
|
if (walletExists()) throw new RuntimeException("Cannot create trade wallet because it already exists");
|
||||||
|
@ -1751,7 +1755,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||||
public void shutDown() {
|
public void shutDown() {
|
||||||
if (isShutDown) return; // ignore if already shut down
|
if (isShutDown) return; // ignore if already shut down
|
||||||
onShutDownStarted();
|
onShutDownStarted();
|
||||||
if (!isPayoutFinalized()) log.info("Shutting down {} {}", getClass().getSimpleName(), getId());
|
if (!isPayoutFinalized() || !(isPayoutUnlocked() && !walletExistsNoSync())) log.info("Shutting down {} {}", getClass().getSimpleName(), getId());
|
||||||
|
|
||||||
// unregister p2p message listener
|
// unregister p2p message listener
|
||||||
removeDecryptedDirectMessageListener();
|
removeDecryptedDirectMessageListener();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue