Browse Source

Fix crash-at-shutdown if exiting before initializing wallet

0.8
Gavin Andresen 12 years ago
parent
commit
dbc6dea1b2
  1. 3
      src/init.cpp

3
src/init.cpp

@ -100,7 +100,8 @@ void Shutdown()
StopNode(); StopNode();
{ {
LOCK(cs_main); LOCK(cs_main);
pwalletMain->SetBestChain(CBlockLocator(pindexBest)); if (pwalletMain)
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
if (pblocktree) if (pblocktree)
pblocktree->Flush(); pblocktree->Flush();
if (pcoinsTip) if (pcoinsTip)

Loading…
Cancel
Save