summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2013-01-11 20:51:01 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2013-01-11 20:51:01 +0100
commit0e3a5e348f7ddd4dbb32ac80a628771aef5705c2 (patch)
tree6fea8f7705fcae8df44ce4e51ebe074337aada9e
parentbc92e9f5e6b2819764a2a60568c02fdb3525282b (diff)
spice-channel: fix state condition check in flush()
-rw-r--r--gtk/spice-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 3a8c19b..2c559b7 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2770,7 +2770,7 @@ void spice_channel_flush_async(SpiceChannel *self, GCancellable *cancellable,
g_return_if_fail(SPICE_IS_CHANNEL(self));
c = self->priv;
- if (!c->state == SPICE_CHANNEL_STATE_READY) {
+ if (c->state != SPICE_CHANNEL_STATE_READY) {
g_simple_async_report_error_in_idle(G_OBJECT(self), callback, user_data,
SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
"The channel is not ready yet");