Re: [Spice-devel] [PATCH spice-server 08/10] red-channel-client: Simplify red_channel_client_wait_pipe_item_sent loop

2017-09-11 Thread Christophe Fergeau
On Mon, Sep 11, 2017 at 11:15:45AM +0100, Frediano Ziglio wrote: > Avoid repeating the same code twice. > red_channel_client_receive and red_channel_client_send already > check if client is blocked, no need to check manually. > Put the check for the loop inside it to avoid this duplication. Not

[Spice-devel] [PATCH spice-server 08/10] red-channel-client: Simplify red_channel_client_wait_pipe_item_sent loop

2017-09-11 Thread Frediano Ziglio
Avoid repeating the same code twice. red_channel_client_receive and red_channel_client_send already check if client is blocked, no need to check manually. Put the check for the loop inside it to avoid this duplication. Signed-off-by: Frediano Ziglio ---