Fix magnitude of connectivity check timeout.

This commit is contained in:
Michael James Gratton 2017-11-24 16:16:58 +11:00
parent b8304b594b
commit 12adbbdcb1

View file

@ -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(); }
);
}