aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-18 09:31:11 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-26 22:14:35 +0100
commitf7f1917ed4708a73e54d9f983e6919df764beb06 (patch)
tree7fbd26393002719a21d6ab8dd0ecd34cbb5df7fc
parentwallet2: parse blocks in the RPC thread, not the processing thread (diff)
downloadmonero-f7f1917ed4708a73e54d9f983e6919df764beb06.tar.xz
wallet2: remove useless device locking
-rw-r--r--src/wallet/wallet2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 57f75e3ec..e220cc058 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -1093,9 +1093,8 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
//ensure device is let in NONE mode in any case
hw::device &hwdev = m_account.get_device();
- boost::unique_lock<hw::device> hwdev_lock (hwdev);
+ boost::unique_lock<hw::device> hwdev_lock (hwdev, boost::defer_lock);
hw::reset_mode rst(hwdev);
- hwdev_lock.unlock();
// In this function, tx (probably) only contains the base information
// (that is, the prunable stuff may or may not be included)