diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-04 11:37:14 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-04 11:37:26 +0100 |
commit | a3511628d0976c15ab71c244853cdda4b25e2ad4 (patch) | |
tree | d98da761bff6f498388ea56ef6d0b11649a92881 | |
parent | 1c2edd9f6707d16c03ecfba094b1cfec2ddc4dce (diff) | |
parent | 7b2d96b634f9fd283480caf3bece56138d0587e3 (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.cpp | 2 |
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); |