diff options
| author | Matt Corallo <[email protected]> | 2017-02-03 13:48:48 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-03 13:50:17 -0500 |
| commit | 7b2d96b634f9fd283480caf3bece56138d0587e3 (patch) | |
| tree | d98da761bff6f498388ea56ef6d0b11649a92881 /src/httpserver.cpp | |
| parent | Merge #9654: Add jtimon pgp keys for commit sigs and future gitian builds (diff) | |
| download | discoin-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.cpp | 2 |
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); |