diff --git a/ChangeLog b/ChangeLog index 581f7e0e..429ccf15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,7 @@ Chris Caudle 2011-06-26 Stephane Letz * More robust code in synchronization primitives and in JackMessageBuffer. + * Non blocking notifications in JackEngine::NotifyAddClient and JackEngine::NotifyRemoveClient. 2011-07-29 Stephane Letz diff --git a/common/JackEngine.cpp b/common/JackEngine.cpp index 69b28a6a..de0dc38b 100644 --- a/common/JackEngine.cpp +++ b/common/JackEngine.cpp @@ -273,7 +273,7 @@ int JackEngine::NotifyAddClient(JackClientInterface* new_client, const char* nam for (int i = 0; i < CLIENT_NUM; i++) { JackClientInterface* old_client = fClientTable[i]; if (old_client && old_client != new_client) { - if (old_client->ClientNotify(refnum, name, kAddClient, true, "", 0, 0) < 0) { + if (old_client->ClientNotify(refnum, name, kAddClient, false, "", 0, 0) < 0) { jack_error("NotifyAddClient old_client fails name = %s", old_client->GetClientControl()->fName); // Not considered as a failure... } @@ -293,7 +293,7 @@ void JackEngine::NotifyRemoveClient(const char* name, int refnum) for (int i = 0; i < CLIENT_NUM; i++) { JackClientInterface* client = fClientTable[i]; if (client) { - client->ClientNotify(refnum, name, kRemoveClient, true, "", 0, 0); + client->ClientNotify(refnum, name, kRemoveClient, false, "", 0, 0); } } }