From 0a7d6c34393639170a541b9d8acf89f158489b8c Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Wed, 16 Sep 2015 21:46:35 +0300 Subject: [PATCH] Force checkqueue to quit while shutting down. --- src/checkqueue.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/checkqueue.h b/src/checkqueue.h index 3c30db7..c4c35e5 100644 --- a/src/checkqueue.h +++ b/src/checkqueue.h @@ -13,6 +13,8 @@ #include #include +extern bool fShutdown; + template class CCheckQueueControl; /** Queue for verifications that have to be performed. @@ -121,7 +123,8 @@ private: if (fOk) fOk = check(); vChecks.clear(); - } while(true); + } while(true && !fShutdown); // HACK: force queue to shut down + return false; } public: -- 1.7.1