[Spice-devel] [PATCH spice-html5] Use a modern number of agent tokens.

Jeremy White jwhite at codeweavers.com
Wed Oct 29 14:35:23 PDT 2014


This keeps an XSpice server from spin looping, which it will do if
data is presented, but num_send_tokens == 0.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 main.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.js b/main.js
index 91f1963..e487551 100644
--- a/main.js
+++ b/main.js
@@ -204,7 +204,7 @@ SpiceMainConn.prototype.connect_agent = function()
 {
     this.agent_connected = true;
 
-    var agent_start = new SpiceMsgcMainAgentStart(0);
+    var agent_start = new SpiceMsgcMainAgentStart(~0);
     var mr = new SpiceMiniData();
     mr.build_msg(SPICE_MSGC_MAIN_AGENT_START, agent_start);
     this.send_msg(mr);
-- 
1.7.10.4



More information about the Spice-devel mailing list