summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index 5bcad7ab..1f025539 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1417,9 +1417,9 @@ static void reds_info_new_channel(RedLinkInfo *link, int connection_id)
if (reds_stream_is_ssl(link->stream)) {
reds_stream_set_info_flag(link->stream, SPICE_CHANNEL_EVENT_FLAG_TLS);
}
- link->stream->info->connection_id = connection_id;
- link->stream->info->type = link->link_mess->channel_type;
- link->stream->info->id = link->link_mess->channel_id;
+ reds_stream_set_channel(link->stream, connection_id,
+ link->link_mess->channel_type,
+ link->link_mess->channel_id);
reds_stream_push_channel_event(link->stream, SPICE_CHANNEL_EVENT_INITIALIZED);
}