aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-manager.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-05-23 12:19:06 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-05-26 13:14:52 +0000
commit728e6cd39810a75af4907e19fb2bd5ca6b211b00 (patch)
tree395d0007636cb6943c8cc38f1be748efed05a0d2 /src/mm-base-manager.c
parent6397aacfdbd8cd69524f3fc8adb722509a0cc05a (diff)
base-modem: fix modem_sync() operation handling
The mm_base_modem_sync() method is an asynchronous method that receives a callback and user data, and therefore we MUST always complete the async method calling that callback. Set that up with a GTask as usual. Also, the mm_base_modem_sync_finish() method should be implemented along with mm_base_modem_sync(), not in the source file of the caller of the async method. The finish() always depends on how the async method was implemented, in our case using a GTask.
Diffstat (limited to 'src/mm-base-manager.c')
-rw-r--r--src/mm-base-manager.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c
index 59d24c20..0a4e59f6 100644
--- a/src/mm-base-manager.c
+++ b/src/mm-base-manager.c
@@ -729,13 +729,6 @@ mm_base_manager_num_modems (MMBaseManager *self)
#if defined WITH_SYSTEMD_SUSPEND_RESUME
-gboolean mm_base_modem_sync_finish (MMBaseModem *self,
- GAsyncResult *res,
- GError **error)
-{
- return g_task_propagate_boolean (G_TASK (res), error);
-}
-
static void
base_modem_sync_ready (MMBaseModem *self,
GAsyncResult *res,