diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-26 13:46:30 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-26 13:46:30 +0200 |
commit | 063c4f9bf8e59ba2ab2b5877446d685e816692f6 (patch) | |
tree | 63633a0262b78fa2dfe964c0a12450b51f38055f | |
parent | b581d6765fb9afb72acc37cb765188d459ffeedd (diff) |
option: fix disabling sequence handling
This provides the proper fix for the disabling sequence, also amending the
erroneous checks introduced in commit 5b10af0f.
-rw-r--r-- | plugins/option/mm-broadband-modem-option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/option/mm-broadband-modem-option.c b/plugins/option/mm-broadband-modem-option.c index 24fc88cf..2d78fd46 100644 --- a/plugins/option/mm-broadband-modem-option.c +++ b/plugins/option/mm-broadband-modem-option.c @@ -960,8 +960,7 @@ parent_disable_unsolicited_events_ready (MMIfaceModem3gpp *self, { GError *error = NULL; - iface_modem_3gpp_parent->disable_unsolicited_events_finish (self, res, &error); - if (error) + if (!iface_modem_3gpp_parent->disable_unsolicited_events_finish (self, res, &error)) g_simple_async_result_take_error (simple, error); else g_simple_async_result_set_op_res_gboolean (simple, TRUE); @@ -976,7 +975,8 @@ own_disable_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); g_simple_async_result_complete (simple); g_object_unref (simple); |