[evolution-data-server] imapx_connect_sync: Fix runtime warning.



commit 437bfffe88ef7ada3c8891b65728e32b0257bd67
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jul 12 09:08:07 2013 -0400

    imapx_connect_sync: Fix runtime warning.
    
    Follows from the previous commit.

 camel/camel-imapx-store.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-imapx-store.c b/camel/camel-imapx-store.c
index c299863..1eb11d4 100644
--- a/camel/camel-imapx-store.c
+++ b/camel/camel-imapx-store.c
@@ -363,7 +363,10 @@ imapx_connect_sync (CamelService *service,
 
        g_mutex_lock (&priv->server_lock);
 
-       g_warn_if_fail (priv->connecting_server == imapx_server);
+       g_warn_if_fail (
+               priv->connecting_server == NULL ||
+               priv->connecting_server == imapx_server);
+
        g_clear_object (&priv->connecting_server);
 
        if (success) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]