mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Slight simplification of red_channel_client_push() logic
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
050c1f55ab
commit
3ad15fb5ca
@ -1303,11 +1303,11 @@ void red_channel_client_push(RedChannelClient *rcc)
|
||||
{
|
||||
RedPipeItem *pipe_item;
|
||||
|
||||
if (!rcc->priv->during_send) {
|
||||
rcc->priv->during_send = TRUE;
|
||||
} else {
|
||||
if (rcc->priv->during_send) {
|
||||
return;
|
||||
}
|
||||
|
||||
rcc->priv->during_send = TRUE;
|
||||
g_object_ref(rcc);
|
||||
if (red_channel_client_is_blocked(rcc)) {
|
||||
red_channel_client_send(rcc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user