telepathy-mission-control: connectivity-monitor: ConnMan Services with ready State are online
Simon McVittie
smcv at kemper.freedesktop.org
Tue Apr 30 04:13:30 PDT 2013
Module: telepathy-mission-control
Branch: master
Commit: 393d6c8b6e64c487c8a426443d3b285c35093dce
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=393d6c8b6e64c487c8a426443d3b285c35093dce
Author: Joshua Lock <joshua.lock at intel.com>
Date: Wed Apr 24 16:09:46 2013 -0700
connectivity-monitor: ConnMan Services with ready State are online
A ConnMan Service is connected if it has a State of online or ready.
[This can matter if your only connectivity to the outside world is through
a proxy, in which case the State will remain 'ready' but Telepathy
accounts might be usable anyway. -smcv]
Signed-off-by: Joshua Lock <joshua.lock at intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
src/connectivity-monitor.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/connectivity-monitor.c b/src/connectivity-monitor.c
index 7337aa5..8d5d8c9 100644
--- a/src/connectivity-monitor.c
+++ b/src/connectivity-monitor.c
@@ -160,7 +160,8 @@ connectivity_monitor_connman_state_changed (DBusGProxy *proxy,
if (!priv->use_conn)
return;
- new_connected = !tp_strdiff (new_state, "online");
+ new_connected = (!tp_strdiff (new_state, "online")
+ || !tp_strdiff (new_state, "ready"));
DEBUG ("New ConnMan network state %s", new_state);
More information about the telepathy-commits
mailing list