diff --git a/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp b/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp index c01217216c..f2e8a95d1c 100644 --- a/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp +++ b/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp @@ -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;