mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 00:58:40 +02:00
Ensure ringdb is written after wallet creation
This commit is contained in:
@@ -1413,18 +1413,18 @@ Wallet::~Wallet()
|
||||
|
||||
m_scheduler.shutdownWaitForFinished();
|
||||
|
||||
//Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
|
||||
if(status() == Status_Critical || status() == Status_BadPassword)
|
||||
if (status() == Status_Critical || status() == Status_BadPassword)
|
||||
qDebug("Not storing wallet cache");
|
||||
else if( m_walletImpl->store(""))
|
||||
else if (m_walletImpl->store(""))
|
||||
qDebug("Wallet cache stored successfully");
|
||||
else
|
||||
qDebug("Error storing wallet cache");
|
||||
|
||||
delete m_walletImpl;
|
||||
m_walletImpl = nullptr;
|
||||
delete m_walletListener;
|
||||
m_walletListener = NULL;
|
||||
qDebug("m_walletImpl deleted");
|
||||
m_walletListener = nullptr;
|
||||
qDebug("~Wallet: Closed");
|
||||
}
|
||||
|
||||
void Wallet::startRefreshThread()
|
||||
|
||||
Reference in New Issue
Block a user