diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Network/PlatformNATTraversalWorker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/Network/PlatformNATTraversalWorker.h b/Swiften/Network/PlatformNATTraversalWorker.h index 91b83f8..e9af651 100644 --- a/Swiften/Network/PlatformNATTraversalWorker.h +++ b/Swiften/Network/PlatformNATTraversalWorker.h @@ -14,6 +14,7 @@ #include <boost/logic/tribool.hpp> #include <Swiften/Base/API.h> +#include <Swiften/Base/Atomic.h> #include <Swiften/Network/NATTraverser.h> #include <Swiften/Network/HostAddressPort.h> #include <Swiften/Network/NullNATTraversalInterface.h> @@ -52,7 +53,7 @@ namespace Swift { private: EventLoop* eventLoop; - bool stopRequested; + Atomic<bool> stopRequested; boost::thread* thread; std::deque<boost::shared_ptr<PlatformNATTraversalRequest> > queue; boost::mutex queueMutex; |