Disconnect wallet on close

This commit is contained in:
tobtoht 2021-07-10 00:25:13 +02:00
parent f818812c12
commit 2525decdbe
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -874,6 +874,10 @@ void MainWindow::closeEvent(QCloseEvent *event) {
m_updateBytes.stop();
m_txTimer.stop();
m_ctx->stopTimers();
// Wallet signal may fire after AppContext is gone, causing segv
m_ctx->wallet->disconnect();
this->saveGeo();
m_windowManager->closeWindow(this);