quectel,shared: fix parent location disabling

The GTask must be passed as user_data.
This commit is contained in:
Aleksander Morgado
2020-06-29 08:53:00 +00:00
parent df393df147
commit 5a9d321346
+4 -6
View File
@@ -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;
}