aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-02-03 13:48:48 -0500
committerMatt Corallo <[email protected]>2017-02-03 13:50:17 -0500
commit7b2d96b634f9fd283480caf3bece56138d0587e3 (patch)
treed98da761bff6f498388ea56ef6d0b11649a92881 /src/httpserver.cpp
parentMerge #9654: Add jtimon pgp keys for commit sigs and future gitian builds (diff)
downloaddiscoin-7b2d96b634f9fd283480caf3bece56138d0587e3.tar.xz
discoin-7b2d96b634f9fd283480caf3bece56138d0587e3.zip
Access WorkQueue::running only within the cs lock.
This removes a "race" between Interrupt() and Run(), though it should not effect any of our supported platforms.
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index 1692b43f2..e1763c6ad 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -118,7 +118,7 @@ public:
void Run()
{
ThreadCounter count(*this);
- while (running) {
+ while (true) {
std::unique_ptr<WorkItem> i;
{
std::unique_lock<std::mutex> lock(cs);