mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Allow quicker shutdowns during LoadBlockIndex()
This commit is contained in:
parent
f030410e88
commit
af5fa82b67
3 changed files with 3 additions and 0 deletions
|
|
@ -1468,6 +1468,7 @@ bool AppInitMain()
|
|||
// Note that it also sets fReindex based on the disk flag!
|
||||
// From here on out fReindex and fReset mean something different!
|
||||
if (!LoadBlockIndex(chainparams)) {
|
||||
if (ShutdownRequested()) break;
|
||||
strLoadError = _("Error loading block database");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue