Minor race condition in mac networking

Tsan has flagged up a race condition in juce_mac_Network.cpp.
Would it be possible to change these to atomics on line 864?

-    bool initialised = false, hasFailed = false, hasFinished = false;
+    std::atomic<bool> initialised { false }, hasFailed { false }, hasFinished { false };

Sure, I’ll sort that out

:+1:

same thing line 335 !

bool hasFailed = false, hasFinished = false, isBeingDeleted = false;

I’ll get those fixed, thanks for reporting.