aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-broadband-modem.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index fd232dbe..80d05001 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -1936,7 +1936,15 @@ modem_init_finish (MMIfaceModem *self,
GAsyncResult *res,
GError **error)
{
- return !mm_base_modem_at_sequence_finish (MM_BASE_MODEM (self), res, NULL, error);
+ GError *inner_error = NULL;
+
+ mm_base_modem_at_sequence_finish (MM_BASE_MODEM (self), res, NULL, &inner_error);
+ if (inner_error) {
+ g_propagate_error (error, inner_error);
+ return FALSE;
+ }
+
+ return TRUE;
}
static const MMBaseModemAtCommand modem_init_sequence[] = {