MemoryWatcher: Initialize m_running to false to prevent crashes on OSX in the dtor when it picks up the wrong initial value
This commit is contained in:
1 parent
e8e0ad3e52
commit
a60b24c937
1 file changed
+1
-1
@@ -36,7 +36,7 @@ private:
|
||||
void WatcherThread();
|
||||
|
||||
std::thread m_watcher_thread;
|
||||
std::atomic_bool m_running;
|
||||
std::atomic_bool m_running{false};
|
||||
|
||||
int m_fd;
|
||||
sockaddr_un m_addr;
|
||||
|
||||
Reference in new issue
Block a user