[Spice-devel] [PATCH spice-gtk] agent: fix mishandling of SPICE_MSG_MAIN_AGENT_TOKEN
Yonit Halperin
yhalperi at redhat.com
Thu Jun 28 01:06:44 PDT 2012
Add the given tokens instead of overriding the existing ones.
---
gtk/channel-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index fc6c97e..70861e6 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -1464,7 +1464,7 @@ static void main_handle_agent_token(SpiceChannel *channel, SpiceMsgIn *in)
SpiceMsgMainAgentTokens *tokens = spice_msg_in_parsed(in);
SpiceMainChannelPrivate *c = SPICE_MAIN_CHANNEL(channel)->priv;
- c->agent_tokens = tokens->num_tokens;
+ c->agent_tokens += tokens->num_tokens;
agent_send_msg_queue(SPICE_MAIN_CHANNEL(channel));
}
--
1.7.7.6
More information about the Spice-devel
mailing list