Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade

This commit is contained in:
Jonas Schnelli 2017-06-28 21:28:11 +02:00
parent 83fbea3f25
commit 542ce6e246
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

@ -417,6 +417,6 @@ bool CCoinsViewDB::Upgrade() {
}
db.WriteBatch(batch);
uiInterface.SetProgressBreakAction(std::function<void(void)>());
LogPrintf("[DONE].\n");
LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE");
return true;
}