Commit e7e5e7c8 authored by Zeeshan Ali's avatar Zeeshan Ali

modem-source: Clear location caps on stopping

Instead of as part of finalize(). This makes things very consistent as
we setup these caps as part of starting the source and we disable the
modem in stop.
parent 3d4c1e4e
......@@ -76,7 +76,6 @@ gclue_modem_source_finalize (GObject *gsource)
GClueModemSource *source = GCLUE_MODEM_SOURCE (gsource);
GClueModemSourcePrivate *priv = source->priv;
clear_caps (source);
G_OBJECT_CLASS (gclue_modem_source_parent_class)->finalize (gsource);
g_cancellable_cancel (priv->cancellable);
......@@ -223,6 +222,7 @@ gclue_modem_source_stop (GClueLocationSource *source)
g_cancellable_cancel (priv->active_cancellable);
g_clear_object (&priv->active_cancellable);
clear_caps (GCLUE_MODEM_SOURCE (source));
mm_modem_disable (priv->modem,
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