Commit 06e384f6 authored by Zeeshan Ali's avatar Zeeshan Ali

modem-source: Don't disable modem on stopping

Disabling the modem, disables it for everyone so if there was an active
connection going on through the modem, geoclue will cause it to
disconnect. While we need to have some centralized means to
enable/disable modem and ideally geoclue shouldn't do any
enabling/disabling of modems at all, for now lets just only enable the
modem.

Also turns out that modem disabling itself doesn't affect the power
consumption and we'll need an extra call to put modem to low power
usage.
parent 302e0625
......@@ -224,10 +224,6 @@ gclue_modem_source_stop (GClueLocationSource *source)
g_clear_object (&priv->active_cancellable);
clear_caps (GCLUE_MODEM_SOURCE (source));
mm_modem_disable (priv->modem,
NULL,
NULL,
NULL);
return TRUE;
}
......
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