aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:33:09 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:33:09 +0200
commitd6fb329653d422f6f525b347df025bb6178e7098 (patch)
treeac6bc221b1adb01a28aa9451701d10f2e419b598 /src/simplewallet/simplewallet.cpp
parentMerge pull request #4553 (diff)
parentsimplewallet: perform trivial error checks before password prompt (diff)
downloadmonero-d6fb329653d422f6f525b347df025bb6178e7098.tar.xz
Merge pull request #4555
68e9744d simplewallet: perform trivial error checks before password prompt (xiphon)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 4128a2789..3d92b2823 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -4715,8 +4715,6 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
if (!try_connect_to_daemon())
return true;
- SCOPED_WALLET_UNLOCK();
-
std::vector<std::string> local_args = args_;
std::set<uint32_t> subaddr_indices;
@@ -4936,6 +4934,8 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
}
}
+ SCOPED_WALLET_UNLOCK();
+
try
{
// figure out what tx will be necessary