[geary/wip/713530-background-sync: 2/9] Fix magnitude of connectivity check timeout.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/713530-background-sync: 2/9] Fix magnitude of connectivity check timeout.
- Date: Fri, 1 Dec 2017 02:29:58 +0000 (UTC)
commit 12adbbdcb1728f686261f44775443dc627cf7efa
Author: Michael James Gratton <mike vee net>
Date: Fri Nov 24 16:16:58 2017 +1100
Fix magnitude of connectivity check timeout.
src/engine/util/util-connectivity-manager.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/util/util-connectivity-manager.vala b/src/engine/util/util-connectivity-manager.vala
index 821fec9..e4189eb 100644
--- a/src/engine/util/util-connectivity-manager.vala
+++ b/src/engine/util/util-connectivity-manager.vala
@@ -68,7 +68,10 @@ public class Geary.ConnectivityManager : BaseObject {
this.monitor.network_changed.connect(on_network_changed);
this.delayed_check = new TimeoutManager.seconds(
- CHECK_QUIESCENCE_MS, () => { this.check_reachable.begin(); }
+ // Don't use the milliseconds ctor since we don't want
+ // high-frequency timing.
+ CHECK_QUIESCENCE_MS / 1000,
+ () => { this.check_reachable.begin(); }
);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]