1
0
Fork 0
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:
reuk 2025-06-23 17:20:32 +01:00
parent 8e6aeab799
commit 1dab91e473
No known key found for this signature in database

View file

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