We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8872b4a commit 64e736dCopy full SHA for 64e736d
src/wallet/wallet.cpp
@@ -250,8 +250,9 @@ void WaitForDeleteWallet(std::shared_ptr<CWallet>&& wallet)
250
const std::string name = wallet->GetName();
251
{
252
LOCK(g_wallet_release_mutex);
253
- auto it = g_unloading_wallet_set.insert(name);
254
- assert(it.second);
+ g_unloading_wallet_set.insert(name);
+ // Do not expect to be the only one removing this wallet.
255
+ // Multiple threads could simultaneously be waiting for deletion.
256
}
257
258
// Time to ditch our shared_ptr and wait for ReleaseWallet call.
0 commit comments