From 579f2bfb27475395b08c63f151fdce73d4bbb5f7 Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Fri, 2 Sep 2016 16:37:11 +0200 Subject: [PATCH] spiceconn: Set channel id Allow to work with more channels of one type Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=97575 Acked-by: Victor Toso --- spiceconn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spiceconn.js b/spiceconn.js index 41d2fa3..9707818 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -119,7 +119,8 @@ SpiceConn.prototype = msg.connection_id = this.connection_id; msg.channel_type = this.type; - // FIXME - we're not setting a channel_id... + msg.channel_id = this.chan_id; + msg.common_caps.push( (1 << SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION) | (1 << SPICE_COMMON_CAP_MINI_HEADER)