Access WorkQueue::running only within the cs lock.
commit7b2d96b634f9fd283480caf3bece56138d0587e3
authorMatt Corallo <git@bluematt.me>
Fri, 3 Feb 2017 18:48:48 +0000 (3 13:48 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 3 Feb 2017 18:50:17 +0000 (3 13:50 -0500)
treed98da761bff6f498388ea56ef6d0b11649a92881
parent1c2edd9f6707d16c03ecfba094b1cfec2ddc4dce
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