Browse Source

macOS: Fixed a data race in URL connections

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
1fd3df6278
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_core/native/juce_mac_Network.mm

+ 2
- 1
modules/juce_core/native/juce_mac_Network.mm View File

@@ -331,7 +331,8 @@ public:
NSMutableData* data = nil;
NSDictionary* headers = nil;
int statusCode = 0;
bool initialised = false, hasFailed = false, hasFinished = false, isBeingDeleted = false;
std::atomic<bool> initialised { false };
bool hasFailed = false, hasFinished = false, isBeingDeleted = false;
const int numRedirectsToFollow;
int numRedirects = 0;
int64 latestTotalBytes = 0;


Loading…
Cancel
Save