From af5fa82b676a36e60eda080ca0a946bdfffefd49 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Fri, 13 Apr 2018 21:20:29 +0200 Subject: Allow quicker shutdowns during LoadBlockIndex() --- src/init.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 18402ef5d7..feb5ff2c5e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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; } -- cgit v1.2.3