From: Jiri Denemark Date: Tue, 22 Nov 2011 14:10:06 +0000 (+0100) Subject: rpc: Pass the buck only to the first available thread X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ebee52f52b042018453c7bd03efbbf5c3406cac4;p=libvirt.git rpc: Pass the buck only to the first available thread --- diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c index deeeaadfae..b518abd6ca 100644 --- a/src/rpc/virnetclient.c +++ b/src/rpc/virnetclient.c @@ -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; }