Merge 776d48dd56 into merged_master (Bitcoin PR bitcoin-core/gui#801)

This commit is contained in:
Byron Hambly 2025-12-04 15:22:31 +02:00
commit 8dfb84eddd
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
5 changed files with 31 additions and 29 deletions

View file

@ -365,6 +365,11 @@ void BitcoinApplication::requestShutdown()
// Request node shutdown, which can interrupt long operations, like
// rescanning a wallet.
node().startShutdown();
// Prior to unsetting the client model, stop listening backend signals
if (clientModel) {
clientModel->stop();
}
// Unsetting the client model can cause the current thread to wait for node
// to complete an operation, like wait for a RPC execution to complete.
window->setClientModel(nullptr);