Browse Source

Fixed a crash in Mac Network when createConnection fails

tags/2021-05-28
dimitri Tom Poole 6 years ago
parent
commit
b27116607f
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_core/native/juce_mac_Network.mm

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

@@ -965,6 +965,9 @@ public:
createConnection();
}
if (connection == nullptr)
return false;
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.
@@ -980,7 +983,7 @@ public:
return false;
}
if (connection != nullptr && connection->headers != nil)
if (connection->headers != nil)
{
statusCode = connection->statusCode;


Loading…
Cancel
Save