aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index d9b892c659..1724382bf5 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -78,10 +78,10 @@ void Shutdown(void* parg)
StopNode();
{
LOCK(cs_main);
- if (pcoinsTip)
- pcoinsTip->Flush();
if (pblocktree)
pblocktree->Flush();
+ if (pcoinsTip)
+ pcoinsTip->Flush();
delete pcoinsTip;
delete pcoinsdbview;
delete pblocktree;