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

LinuxWebComponent: Fix high CPU usage

This commit is contained in:
Oli James 2023-01-26 21:48:05 +00:00 committed by Oli
parent 39ba1c8383
commit b9cc72b167

View file

@ -829,7 +829,7 @@ private:
int result = 0;
while (result == 0 || (result < 0 && errno == EINTR))
result = poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), 0);
result = poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), 10);
if (result < 0)
break;