aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-08-02 18:50:25 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-08-02 18:50:25 -0400
commit8c41d14ad58daddf682d8d690e0f77e1c218a5fe (patch)
treee6e351a37be1e77809e208aefc6eac138acbdcb1 /src
parentMerge pull request #7787 (diff)
parentwallet2: Don't auto lock device on process parsed blocks (diff)
downloadmonero-8c41d14ad58daddf682d8d690e0f77e1c218a5fe.tar.xz
Merge pull request #7788
f5eb2ce wallet2: Don't auto lock device on process parsed blocks (tobtoht)
Diffstat (limited to 'src')
-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 33f482a12..3d1cfddd0 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2776,9 +2776,8 @@ void wallet2::process_parsed_blocks(uint64_t start_height, const std::vector<cry
{
if (tx_cache_data[i].empty())
continue;
- tpool.submit(&waiter, [&hwdev, &gender, &tx_cache_data, i]() {
+ tpool.submit(&waiter, [&gender, &tx_cache_data, i]() {
auto &slot = tx_cache_data[i];
- boost::unique_lock<hw::device> hwdev_lock(hwdev);
for (auto &iod: slot.primary)
gender(iod);
for (auto &iod: slot.additional)