From fe7f34f0fad5aa7a47b03c7ef31b654b02512e26 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 27 Nov 2017 17:26:10 +0000 Subject: [PATCH] Improved the idling of socket InterprocessConnections --- .../juce_events/interprocess/juce_InterprocessConnection.cpp | 2 +- .../interprocess/juce_InterprocessConnectionServer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_events/interprocess/juce_InterprocessConnection.cpp b/modules/juce_events/interprocess/juce_InterprocessConnection.cpp index 931995421e..33df6e2150 100644 --- a/modules/juce_events/interprocess/juce_InterprocessConnection.cpp +++ b/modules/juce_events/interprocess/juce_InterprocessConnection.cpp @@ -325,7 +325,7 @@ void InterprocessConnection::runThread() { if (socket != nullptr) { - auto ready = socket->waitUntilReady (true, 0); + auto ready = socket->waitUntilReady (true, 100); if (ready < 0) { diff --git a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h index 552dd1c180..0305914e58 100644 --- a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h +++ b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h @@ -48,7 +48,7 @@ public: //============================================================================== /** Starts an internal thread which listens on the given port number. - While this is running, in another process tries to connect with the + While this is running, if another process tries to connect with the InterprocessConnection::connectToSocket() method, this object will call createConnectionObject() to create a connection to that client.