From 09ce13634607c1dd505053888f252d00650bfe67 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 29 Oct 2017 13:17:30 +1100 Subject: [PATCH] [client] fixed attempt to send input message before connected --- client/spice/spice.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/spice/spice.c b/client/spice/spice.c index cce0d3c0..457aea98 100644 --- a/client/spice/spice.c +++ b/client/spice/spice.c @@ -367,18 +367,18 @@ bool spice_on_main_channel_read() } spice.sessionID = msg.session_id; - if (msg.current_mouse_mode != SPICE_MOUSE_MODE_CLIENT && !spice_mouse_mode(false)) - { - DEBUG_ERROR("failed to set mouse mode"); - return false; - } - if (!spice_connect_channel(&spice.scInputs)) { DEBUG_ERROR("failed to connect inputs channel"); return false; } + if (msg.current_mouse_mode != SPICE_MOUSE_MODE_CLIENT && !spice_mouse_mode(false)) + { + DEBUG_ERROR("failed to set mouse mode"); + return false; + } + return true; }