We may have several widget trying to re-connect the channels now.
It is fine to return successfully if we are already connecting or
connected.
---
 gtk/spice-channel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 793e36f..54d406d 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2314,7 +2314,7 @@ gboolean spice_channel_connect(SpiceChannel *channel)
     g_return_val_if_fail(SPICE_IS_CHANNEL(channel), FALSE);
     SpiceChannelPrivate *c = channel->priv;
 
-    if (c->state == SPICE_CHANNEL_STATE_CONNECTING)
+    if (c->state >= SPICE_CHANNEL_STATE_CONNECTING)
         return TRUE;
 
     return channel_connect(channel);
-- 
1.7.10.4

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to