mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
WebBrowserComponent: Avoid spinning indefinitely when reaching end of file
This commit is contained in:
parent
8e6aeab799
commit
1dab91e473
1 changed files with 2 additions and 2 deletions
|
|
@ -547,9 +547,9 @@ private:
|
|||
{
|
||||
const auto bytesThisTime = read (inChannel, target.data() + pos, target.size() - pos);
|
||||
|
||||
if (bytesThisTime < 0)
|
||||
if (bytesThisTime <= 0)
|
||||
{
|
||||
if (errno == EINTR)
|
||||
if (bytesThisTime != 0 && errno == EINTR)
|
||||
continue;
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue