aboutsummaryrefslogtreecommitdiff
path: root/plugins/quectel/mm-shared-quectel.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-06-28 10:35:57 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-06-29 08:53:00 +0000
commit5a9d321346df5e964780def158072df794c604dd (patch)
tree512a2c707f00d4f4172aaf9cafe1b57bcd634a99 /plugins/quectel/mm-shared-quectel.c
parentdf393df1479ab79f028b17eb3df0ea0eb96b9140 (diff)
quectel,shared: fix parent location disabling
The GTask must be passed as user_data.
Diffstat (limited to 'plugins/quectel/mm-shared-quectel.c')
-rw-r--r--plugins/quectel/mm-shared-quectel.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/quectel/mm-shared-quectel.c b/plugins/quectel/mm-shared-quectel.c
index bda7db06..c53b4660 100644
--- a/plugins/quectel/mm-shared-quectel.c
+++ b/plugins/quectel/mm-shared-quectel.c
@@ -627,12 +627,10 @@ mm_shared_quectel_disable_location_gathering (MMIfaceModemLocation *self,
if (!(source & priv->provided_sources) &&
priv->iface_modem_location_parent->disable_location_gathering &&
priv->iface_modem_location_parent->disable_location_gathering_finish) {
- // TODO: Is there anything I can do about this long line?
- priv->iface_modem_location_parent->
- disable_location_gathering (self,
- source,
- (GAsyncReadyCallback)disable_location_gathering_parent_ready,
- user_data);
+ priv->iface_modem_location_parent->disable_location_gathering (self,
+ source,
+ (GAsyncReadyCallback)disable_location_gathering_parent_ready,
+ task);
return;
}