Commit 302e0625 authored by Zeeshan Ali's avatar Zeeshan Ali

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.
parent b24d6f5a
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment