[evolution-data-server] Remove confusing runtime warning in e-source.c



commit 74eb5f32544cd2c23555458aa377b096cb0d461f
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 6 11:36:24 2015 +0200

    Remove confusing runtime warning in e-source.c
    
    It could happen that the source registry revoked the source while
    an asynchronous call to e_source_get_last_credentials_required_arguments()
    was waiting in the GTask queue, which produced the replaced
    runtime warning afterwards.

 libedataserver/e-source.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libedataserver/e-source.c b/libedataserver/e-source.c
index eddb724..4ddbe7c 100644
--- a/libedataserver/e-source.c
+++ b/libedataserver/e-source.c
@@ -5210,10 +5210,8 @@ e_source_get_last_credentials_required_arguments_sync (ESource *source,
                g_object_unref (dbus_object);
        }
 
-       if (!dbus_source) {
-               g_warn_if_fail (dbus_source != NULL);
+       if (!dbus_source)
                return FALSE;
-       }
 
        success = e_dbus_source_call_get_last_credentials_required_arguments_sync (dbus_source,
                &arg_reason, out_certificate_pem, &arg_certificate_errors,


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