From 063c4f9bf8e59ba2ab2b5877446d685e816692f6 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 26 Mar 2012 13:46:30 +0200 Subject: [PATCH] option: fix disabling sequence handling This provides the proper fix for the disabling sequence, also amending the erroneous checks introduced in commit 5b10af0f. --- plugins/option/mm-broadband-modem-option.c | 6 +++--- 1 file 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);