mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix: datarace in walletmodel.cpp causing occasional segfaults in instantsend code at shutdown (#4583)
Thanks thephez
This commit is contained in:
parent
1aefe95b02
commit
10e5ed2d5e
@ -74,6 +74,10 @@ void WalletModel::updateStatus()
|
||||
|
||||
void WalletModel::pollBalanceChanged()
|
||||
{
|
||||
if (node().shutdownRequested()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Try to get balances and return early if locks can't be acquired. This
|
||||
// avoids the GUI from getting stuck on periodical polls if the core is
|
||||
// holding the locks for a longer time - for example, during a wallet
|
||||
|
Loading…
Reference in New Issue
Block a user