aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-03 13:48:48 -0500
committerMatt Corallo <git@bluematt.me>2017-02-03 13:50:17 -0500
commit7b2d96b634f9fd283480caf3bece56138d0587e3 (patch)
treed98da761bff6f498388ea56ef6d0b11649a92881 /src/httpserver.cpp
parent1c2edd9f6707d16c03ecfba094b1cfec2ddc4dce (diff)
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 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);