diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java index fe085de1bb..89b744ccb3 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -376,8 +376,8 @@ public class XmrWalletService extends XmrWalletBase { } public void saveWallet(MoneroWallet wallet, boolean backup) { - wallet.save(); if (backup) backupWallet(getWalletName(wallet.getPath())); + wallet.save(); } public void closeWallet(MoneroWallet wallet, boolean save) { @@ -385,8 +385,8 @@ public class XmrWalletService extends XmrWalletBase { MoneroError err = null; String path = wallet.getPath(); try { - wallet.close(save); - if (save) backupWallet(getWalletName(path)); + if (save) saveWallet(wallet, true); + wallet.close(); } catch (MoneroError e) { err = e; }