git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f7cde12
)
Force checkqueue to quit while shutting down.
author
CryptoManiac
<balthazar@yandex.ru>
Wed, 16 Sep 2015 18:46:35 +0000 (21:46 +0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Wed, 16 Sep 2015 18:46:35 +0000 (21:46 +0300)
src/checkqueue.h
patch
|
blob
|
history
diff --git
a/src/checkqueue.h
b/src/checkqueue.h
index
3c30db7
..
c4c35e5
100644
(file)
--- a/
src/checkqueue.h
+++ b/
src/checkqueue.h
@@
-13,6
+13,8
@@
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>
+extern bool fShutdown;
+
template<typename T> 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: