mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-16 15:58:08 +00:00
backup trade wallet on successful save and close
This commit is contained in:
parent
ff76e39c03
commit
6c1fa1770c
1 changed files with 1 additions and 3 deletions
|
@ -937,6 +937,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||||
if (wallet == null) throw new RuntimeException("Trade wallet to close is not open for trade " + getId());
|
if (wallet == null) throw new RuntimeException("Trade wallet to close is not open for trade " + getId());
|
||||||
stopPolling();
|
stopPolling();
|
||||||
xmrWalletService.closeWallet(wallet, true);
|
xmrWalletService.closeWallet(wallet, true);
|
||||||
|
maybeBackupWallet();
|
||||||
wallet = null;
|
wallet = null;
|
||||||
pollPeriodMs = null;
|
pollPeriodMs = null;
|
||||||
}
|
}
|
||||||
|
@ -1545,9 +1546,6 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||||
forceCloseWallet();
|
forceCloseWallet();
|
||||||
}
|
}
|
||||||
|
|
||||||
// backup trade wallet if applicable
|
|
||||||
maybeBackupWallet();
|
|
||||||
|
|
||||||
// de-initialize
|
// de-initialize
|
||||||
if (idlePayoutSyncer != null) {
|
if (idlePayoutSyncer != null) {
|
||||||
xmrWalletService.removeWalletListener(idlePayoutSyncer);
|
xmrWalletService.removeWalletListener(idlePayoutSyncer);
|
||||||
|
|
Loading…
Reference in a new issue