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

OSC: fixed an issue where OSCReceiver was busy-waiting and consuming lots of CPU.

This commit is contained in:
Timur Doumler 2015-11-11 15:03:01 +00:00
parent 44b9eba29a
commit 4f034dbc77

View file

@ -434,6 +434,10 @@ private:
{
jassert (socket != nullptr);
char buffer[oscBufferSize];
socket->waitUntilReady (true, -1);
if (threadShouldExit())
return;
const int bytesRead = socket->read (buffer, (int) sizeof (buffer), false);