diff --git a/include/mdns_cpp/mdns.hpp b/include/mdns_cpp/mdns.hpp index dafdfb8..f630055 100644 --- a/include/mdns_cpp/mdns.hpp +++ b/include/mdns_cpp/mdns.hpp @@ -47,7 +47,7 @@ class mDNS { std::uint16_t port_{42424}; std::string txt_record_{}; - bool running_{false}; + std::atomic running_{false}; bool dumpMode_{false}; struct sockaddr_in service_address_ipv4_;