[Spice-devel] [PATCH spice-html5] spiceconn: Set channel id

Pavel Grunt pgrunt at redhat.com
Fri Sep 2 14:37:11 UTC 2016


Allow to work with more channels of one type
---
 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)
-- 
2.9.3



More information about the Spice-devel mailing list