summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2017-03-07 13:07:41 -0600
committerJeremy White <jwhite@codeweavers.com>2017-03-07 13:29:25 -0600
commit2fa7c65144c0eece5bb6d359266f951ed6a37a56 (patch)
treecffa66c26bbb4403d54620d61f356d666fd1713f
parent4ea12e87a222c5c5df3c3ed3838561505d6c4cc5 (diff)
When offered multiple heads, generate a warning, rather than failing in subtle ways.
-rw-r--r--main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.js b/main.js
index 2d8a1ff..173ff97 100644
--- a/main.js
+++ b/main.js
@@ -145,7 +145,12 @@ SpiceMainConn.prototype.process_channel_message = function(msg)
chan_id : chans.channels[i].id
};
if (chans.channels[i].type == SPICE_CHANNEL_DISPLAY)
- this.display = new SpiceDisplayConn(conn);
+ {
+ if (this.display !== undefined)
+ this.log_warn("The spice-html5 client does not handle multiple heads.");
+ else
+ this.display = new SpiceDisplayConn(conn);
+ }
else if (chans.channels[i].type == SPICE_CHANNEL_INPUTS)
{
this.inputs = new SpiceInputsConn(conn);