Flight mode vconf to be set in case no CP availible.
authorwootak.jung <wootak.jung@samsung.com>
Wed, 10 Apr 2013 07:00:41 +0000 (16:00 +0900)
committerwootak.jung <wootak.jung@samsung.com>
Wed, 10 Apr 2013 07:06:45 +0000 (16:06 +0900)
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

index ab371bd..61bb97c 100644 (file)
@@ -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; \