diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-24 18:08:30 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-24 19:16:44 +0100 |
commit | 5b10af0ff3975fd855c5187ef34cb278031102d8 (patch) | |
tree | b481a6286e20c57dcf4c4b53d6ac00d4f5598ddc | |
parent | 0bc824b452de45815a8b8675d2b041a5eb98cb4c (diff) |
option: no result expected in unsolicited enabling/disabling sequence
-rw-r--r-- | plugins/option/mm-broadband-modem-option.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/option/mm-broadband-modem-option.c b/plugins/option/mm-broadband-modem-option.c index 99828c9f..bae2e8b0 100644 --- a/plugins/option/mm-broadband-modem-option.c +++ b/plugins/option/mm-broadband-modem-option.c @@ -861,7 +861,8 @@ own_enable_unsolicited_events_ready (MMBaseModem *self, { GError *error = NULL; - if (!mm_base_modem_at_sequence_full_finish (self, res, NULL, &error)) + mm_base_modem_at_sequence_full_finish (self, res, NULL, &error); + if (error) g_simple_async_result_take_error (simple, error); else g_simple_async_result_set_op_res_gboolean (simple, TRUE); @@ -947,7 +948,8 @@ parent_disable_unsolicited_events_ready (MMIfaceModem3gpp *self, { GError *error = NULL; - if (!iface_modem_3gpp_parent->disable_unsolicited_events_finish (self, res, &error)) + iface_modem_3gpp_parent->disable_unsolicited_events_finish (self, res, &error); + if (error) g_simple_async_result_take_error (simple, error); else g_simple_async_result_set_op_res_gboolean (simple, TRUE); |