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:
parent
2ca0c9200f
commit
38c897f8a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue