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



commit 96f3b49807a7a84db605facd7a48d9dfa4bf27d9
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 4d01cf8..0bfb96f 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]