[Spice-commits] server/red-channel-client.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 24 18:29:34 UTC 2020
server/red-channel-client.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit ad94d9101784b77c7a110a7dfc738bc7012cb020
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Sun Oct 13 21:39:38 2019 +0100
red-channel-client: Reuse red_channel_client_shutdown
red_channel_client_shutdown remove the watch and shutdown the
socket. Reuse in red_channel_client_disconnect.
Calling shutdown will close the connection earlier.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 0b4096cd..235085cc 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -1730,8 +1730,7 @@ void red_channel_client_disconnect(RedChannelClient *rcc)
}
red_channel_client_pipe_clear(rcc);
- red_watch_remove(rcc->priv->stream->watch);
- rcc->priv->stream->watch = NULL;
+ red_channel_client_shutdown(rcc);
red_timer_remove(rcc->priv->latency_monitor.timer);
rcc->priv->latency_monitor.timer = NULL;
More information about the Spice-commits
mailing list