From cb80cf87b9adabe47e403b569803df5c91a24c0b Mon Sep 17 00:00:00 2001 From: "wootak.jung" Date: Wed, 10 Apr 2013 16:00:41 +0900 Subject: [PATCH] Flight mode vconf to be set in case no CP availible. When CP is offline state, dbus interface does not created at this moment. If tel_set_flight_mode is called by application, then g_dbus_connection_call_finish with error will be occured. Thus, evt_cb_data->cb_fn will not be luanched. Change-Id: I22dd366d1ee5bc5bf703006309948a29c82a7416 --- src/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index ab371bd..61bb97c 100644 --- a/src/common.h +++ b/src/common.h @@ -38,7 +38,8 @@ __BEGIN_DECLS #define CHECK_DEINIT(error) \ if (error) { \ dbg("dbus error = %d (%s)", error->code, error->message); \ - if (error->code == G_IO_ERROR_CANCELLED) { \ + if (error->code == G_IO_ERROR_CANCELLED \ + && error->domain == G_IO_ERROR) { \ g_error_free(error); \ free(evt_cb_data); \ return; \ -- 2.7.4