From b932df85fd7a120b8d1a995cb5dc3e84594a8d2f Mon Sep 17 00:00:00 2001 From: xiphon Date: Sat, 17 Oct 2020 02:58:23 +0000 Subject: [PATCH] Wallet: interrupt refresh thread on wallet close --- src/libwalletqt/Wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 454dca29..d9021f47 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -1086,6 +1086,8 @@ Wallet::~Wallet() { qDebug("~Wallet: Closing wallet"); + pauseRefresh(); + m_walletImpl->stop(); m_scheduler.shutdownWaitForFinished(); delete m_addressBook;