[Spice-commits] server/reds.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Tue Jan 30 22:42:39 UTC 2018
server/reds.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 342ed06ad2a4a5bf05c7bef356eaa64d09d2d9a8
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Dec 14 14:07:07 2017 +0000
reds: Remove stream watch handling link in a single place
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
diff --git a/server/reds.c b/server/reds.c
index 777f5ba4..fa5e838a 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1791,7 +1791,6 @@ static void reds_handle_main_link(RedsState *reds, RedLinkInfo *link)
reds_info_new_channel(link, connection_id);
stream = link->stream;
- red_stream_remove_watch(stream);
link->stream = NULL;
link->link_mess = NULL;
reds_link_free(link);
@@ -1993,7 +1992,6 @@ static void reds_handle_other_links(RedsState *reds, RedLinkInfo *link)
reds_send_link_result(link, SPICE_LINK_ERR_OK);
reds_info_new_channel(link, link_mess->connection_id);
- red_stream_remove_watch(link->stream);
mig_client = reds_mig_target_client_find(reds, client);
/*
@@ -2023,6 +2021,7 @@ static void reds_handle_link(RedLinkInfo *link)
{
RedsState *reds = link->reds;
+ red_stream_remove_watch(link->stream);
if (link->link_mess->channel_type == SPICE_CHANNEL_MAIN) {
reds_handle_main_link(reds, link);
} else {
More information about the Spice-commits
mailing list