Browse Source

Return nullptr from URL::createInputStream if a request times out

tags/2021-05-28
hogliux 9 years ago
parent
commit
38c897f8a4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_mac_Network.mm

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

@@ -633,7 +633,7 @@ public:
}
//==============================================================================
bool isError() const { return connection == nullptr; }
bool isError() const { return (connection == nullptr || connection->headers == nullptr); }
int64 getTotalLength() override { return connection == nullptr ? -1 : connection->contentLength; }
bool isExhausted() override { return finished; }
int64 getPosition() override { return position; }


Loading…
Cancel
Save