[gnome-online-accounts/wip/rishi/owncloud-gssapi: 8/9] owncloud: Remove needless g_cancellable_reset calls



commit 9c52da55e73355dff661a14555ace2b8de51c15a
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 20 20:08:23 2016 +0100

    owncloud: Remove needless g_cancellable_reset calls
    
    It isn't possible for the GCancellable to be cancelled at this point.
    If we had cancelled the dialog, we would have short-circuited our way
    out of the function and never reached this point.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762097

 src/goabackend/goaowncloudprovider.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index b2f3a7e..bce7780 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -717,7 +717,6 @@ add_account (GoaProvider    *provider,
     goto out;
 
   uri_webdav = g_strconcat (uri, WEBDAV_ENDPOINT, NULL);
-  g_cancellable_reset (data.check_cancellable);
   goa_http_client_check (http_client,
                          uri_webdav,
                          username,
@@ -912,7 +911,6 @@ refresh_account (GoaProvider    *provider,
     }
 
   password = gtk_entry_get_text (GTK_ENTRY (data.password));
-  g_cancellable_reset (data.check_cancellable);
   goa_http_client_check (http_client,
                          uri_webdav,
                          username,


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