aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-02-04 11:37:14 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-04 11:37:26 +0100
commita3511628d0976c15ab71c244853cdda4b25e2ad4 (patch)
treed98da761bff6f498388ea56ef6d0b11649a92881
parent1c2edd9f6707d16c03ecfba094b1cfec2ddc4dce (diff)
parent7b2d96b634f9fd283480caf3bece56138d0587e3 (diff)
Merge #9679: Access WorkQueue::running only within the cs lock
7b2d96b Access WorkQueue::running only within the cs lock. (Matt Corallo)
-rw-r--r--src/httpserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index 1692b43f28..e1763c6ad2 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);