[Spice-devel] [PATCH spice-gtk 11/25] spice_channel_connect() success if state >= CONNECTING
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Jul 12 15:29:08 PDT 2012
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
More information about the Spice-devel
mailing list