Browse Source

Improved a variable name

tags/2021-05-28
tpoole 8 years ago
parent
commit
c52f147565
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_core/native/juce_mac_Network.mm

+ 3
- 3
modules/juce_core/native/juce_mac_Network.mm View File

@@ -881,17 +881,17 @@ public:
connection = nullptr;
}
bool connect (WebInputStream::Listener* webInputListener, int attemptNumber = 0)
bool connect (WebInputStream::Listener* webInputListener, int numRetries = 0)
{
createConnection();
if (! connection->start (owner, webInputListener))
{
// Workaround for deployment targets below 10.10 where HTTPS POST requests with keep-alive fail with the NSURLErrorNetworkConnectionLost error code.
#if ! (JUCE_IOS || (defined (__MAC_OS_X_VERSION_MIN_REQUIRED) && defined (__MAC_10_10) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_10))
if (attemptNumber == 0 && connection->nsUrlErrorCode == NSURLErrorNetworkConnectionLost)
if (numRetries == 0 && connection->nsUrlErrorCode == NSURLErrorNetworkConnectionLost)
{
connection = nullptr;
return connect (webInputListener, ++attemptNumber);
return connect (webInputListener, ++numRetries);
}
#endif


Loading…
Cancel
Save