Skip remainder of init if upgrade is cancelled

This commit is contained in:
Matt Corallo committed 2017-08-07 08:31:41 -07:00
1 parent 318392ca7c
commit 861f9a28bc
1 file changed
+1 -1
+1 -1
View File
@@ -422,5 +422,5 @@ bool CCoinsViewDB::Upgrade() {
db.CompactRange({DB_COINS, uint256()}, key); db.CompactRange({DB_COINS, uint256()}, key);
uiInterface.SetProgressBreakAction(std::function<void(void)>()); uiInterface.SetProgressBreakAction(std::function<void(void)>());
LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE"); LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE");
return true; return !ShutdownRequested();
} }