]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpc: Pass the buck only to the first available thread
authorJiri Denemark <jdenemar@redhat.com>
Tue, 22 Nov 2011 14:10:06 +0000 (15:10 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 24 Nov 2011 10:44:07 +0000 (11:44 +0100)
src/rpc/virnetclient.c

index deeeaadfaecc1ec2bf98e9436aaab14d878272ce..b518abd6ca957b98216fcef367b8fb641e7fcb16 100644 (file)
@@ -1102,7 +1102,7 @@ static void virNetClientIOEventLoopPassTheBuck(virNetClientPtr client, virNetCli
         if (tmp != thiscall && tmp->haveThread) {
             VIR_DEBUG("Passing the buck to %p", tmp);
             virCondSignal(&tmp->cond);
-            break;
+            return;
         }
         tmp = tmp->next;
     }