mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-12 02:20:53 -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() {
|
||||
synchronized (walletLock) {
|
||||
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() {
|
||||
if (isShutDown) return; // ignore if already shut down
|
||||
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
|
||||
removeDecryptedDirectMessageListener();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue