[geary/wip/email-flag-refinement: 1/6] Treat ConnectivityManager errors as failure rather than unreachable



commit fb6e6383eae05e263113b79227f2d0d33750028a
Author: Michael Gratton <mike vee net>
Date:   Mon Feb 11 14:29:38 2019 +1100

    Treat ConnectivityManager errors as failure rather than unreachable
    
    This lets the errors get reported to the user.

 src/engine/api/geary-client-service.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/engine/api/geary-client-service.vala b/src/engine/api/geary-client-service.vala
index 7a2b9c35..3d7a396a 100644
--- a/src/engine/api/geary-client-service.vala
+++ b/src/engine/api/geary-client-service.vala
@@ -439,10 +439,9 @@ public abstract class Geary.ClientService : BaseObject {
 
        private void on_connectivity_error(Error error) {
         if (this.is_running) {
-            this.current_status = CONNECTION_FAILED;
             this.became_reachable_timer.reset();
             this.became_unreachable_timer.reset();
-            became_unreachable();
+            notify_connection_failed(new ErrorContext(error));
         }
        }
 


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