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:
parent
44b9eba29a
commit
4f034dbc77
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue