From 5a9d321346df5e964780def158072df794c604dd Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 28 Jun 2020 10:35:57 +0200 Subject: [PATCH] quectel,shared: fix parent location disabling The GTask must be passed as user_data. --- plugins/quectel/mm-shared-quectel.c | 10 ++++------ 1 file 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; }