summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>2014-04-15 20:41:16 +0100
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2014-04-15 20:42:31 +0100
commit302e062540155855984348ee115bc3fe3d5e913f (patch)
tree4fba49db1ea960678c815eec4eb0b8294802db0b
parentb24d6f5ab5056e454e3b87811b90ea658dda5be5 (diff)
modem-source: Start/stop report success on 'no modem'
Source chains-up already before checking for modem so it gets marked as active and if modem is made available later and source is marked as active, the modem is taken into use.
-rw-r--r--src/gclue-modem-source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gclue-modem-source.c b/src/gclue-modem-source.c
index ab704a9..72030bc 100644
--- a/src/gclue-modem-source.c
+++ b/src/gclue-modem-source.c
@@ -192,7 +192,7 @@ gclue_modem_source_start (GClueLocationSource *source)
return FALSE;
if (priv->modem == NULL)
- return FALSE;
+ return TRUE;
priv->active_cancellable = g_cancellable_new ();
mm_modem_enable (priv->modem,
@@ -215,7 +215,7 @@ gclue_modem_source_stop (GClueLocationSource *source)
return FALSE;
if (priv->modem == NULL)
- return FALSE;
+ return TRUE;
g_signal_handlers_disconnect_by_func (G_OBJECT (priv->modem_location),
G_CALLBACK (on_location_changed),