From: CryptoManiac Date: Wed, 16 Sep 2015 18:46:35 +0000 (+0300) Subject: Force checkqueue to quit while shutting down. X-Git-Tag: nvc-v0.5.4~43 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=0a7d6c34393639170a541b9d8acf89f158489b8c;hp=f7cde122146238097ef0d3ef2ed24c1681a0ddbd;p=novacoin.git Force checkqueue to quit while shutting down. --- 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: