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
#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; \