[Nice] [nice/master] Fix a logic bug

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Nov 5 14:00:58 PST 2008


darcs-hash:20080422163047-4f0f6-734497a855a7070b2bdb5e856c79b374455f6caf.gz
---
 agent/stream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/agent/stream.c b/agent/stream.c
index 5342a7c..d52d0c2 100644
--- a/agent/stream.c
+++ b/agent/stream.c
@@ -119,8 +119,8 @@ stream_all_components_ready (const Stream *stream)
 
   for (i = stream->components; i; i = i->next) {
     Component *component = i->data;
-    if (component && 
-	(component->state == NICE_COMPONENT_STATE_CONNECTED ||
+    if (component &&
+	!(component->state == NICE_COMPONENT_STATE_CONNECTED ||
 	 component->state == NICE_COMPONENT_STATE_READY))
       return FALSE;
   }
-- 
1.5.6.5




More information about the Nice mailing list