From 7b2d96b634f9fd283480caf3bece56138d0587e3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 3 Feb 2017 13:48:48 -0500 Subject: 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. --- src/httpserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 i; { std::unique_lock lock(cs); -- cgit v1.2.3