Post to worker thread in qt wallet when doing write tx's on io threads (#2256)
* Post to worker in qt wallet when doing write tx's * Remove unnecessary work post as it is already wrapped in a UI post
This commit is contained in:
parent
b796ec601f
commit
3b86ce6470
1 changed files with 4 additions and 2 deletions
|
@ -1411,8 +1411,10 @@ void nano_qt::wallet::update_connected ()
|
|||
void nano_qt::wallet::empty_password ()
|
||||
{
|
||||
this->node.alarm.add (std::chrono::steady_clock::now () + std::chrono::seconds (3), [this]() {
|
||||
auto transaction (wallet_m->wallets.tx_begin_write ());
|
||||
wallet_m->enter_password (transaction, std::string (""));
|
||||
this->node.worker.push_task ([this]() {
|
||||
auto transaction (wallet_m->wallets.tx_begin_write ());
|
||||
wallet_m->enter_password (transaction, std::string (""));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue