Permalink
Browse files

Interrupt reindex when user requested shutdown

  • Loading branch information...
zander committed Jul 29, 2017
1 parent 7f5fee7 commit db2963235e4c083223276e168ecc3c529464add1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/BlocksDB.cpp
View
@@ -169,7 +169,7 @@ void reimportBlockFiles(std::vector<boost::filesystem::path> vImportFiles)
if (fReindex) {
CImportingNow imp;
int nFile = 0;
while (true) {
while (!ShutdownRequested()) {
CDiskBlockPos pos(nFile, 0);
if (!boost::filesystem::exists(Blocks::getFilepathForIndex(pos.nFile, "blk")))
break; // No block files left to reindex

0 comments on commit db29632

Please sign in to comment.