diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-06 10:40:47 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-06 10:43:20 +0200 |
commit | 2d7bf65093a70ee5894eb9a08d31568aec2d8ed3 (patch) | |
tree | 7ffab8749c989ed2704ac89641f5658fde67ffde | |
parent | e953d285c18a90f09df4b5d23b6649dbe3fafc55 (diff) | |
download | ModemManager-2d7bf65093a70ee5894eb9a08d31568aec2d8ed3.tar.gz |
broadband-modem-qmi: avoid completing the GTask twice when loading capabilities
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index 09ebac7b3..7c8ea6b55 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -365,13 +365,13 @@ load_current_capabilities_get_capabilities_ready (QmiClientDms *client, QmiDmsRadioInterface, i)); } + + g_task_return_int (task, + mm_modem_capability_from_qmi_capabilities_context (&ctx->capabilities_context)); } if (output) qmi_message_dms_get_capabilities_output_unref (output); - - g_task_return_int (task, - mm_modem_capability_from_qmi_capabilities_context (&ctx->capabilities_context)); g_object_unref (task); } |