1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

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

This commit is contained in:
hogliux 2016-07-05 09:46:19 +01:00
parent 2ca0c9200f
commit 38c897f8a4

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; }