diff options
author | Jooseok Park <jooseok.park@samsung.com> | 2017-01-03 20:42:03 +0900 |
---|---|---|
committer | Jooseok Park <jooseok.park@samsung.com> | 2017-01-03 20:49:20 +0900 |
commit | 60fe104e91501d5e92e09a785cae20cb57e9fb91 (patch) | |
tree | dd8bd4ebd60ad402b9f98ea3896e674b209f7323 | |
parent | 367e91b244ceab0b37a6d0be04be5d3a1a190290 (diff) | |
download | iotcon-accepted/tizen_3.0.m2_wearable.tar.gz iotcon-accepted/tizen_3.0.m2_wearable.tar.bz2 iotcon-accepted/tizen_3.0.m2_wearable.zip |
fix the itc crashsubmit/tizen_3.0/20170103.123536submit/tizen_3.0.m2/20170104.093750accepted/tizen/3.0/wearable/20170103.160257accepted/tizen/3.0/tv/20170103.160239accepted/tizen/3.0/mobile/20170103.160222accepted/tizen/3.0/ivi/20170103.160317accepted/tizen/3.0/common/20170103.173107accepted/tizen/3.0.m2/wearable/20170104.125819accepted/tizen/3.0.m2/tv/20170104.125613accepted/tizen/3.0.m2/mobile/20170104.125301tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobile
- TC: ITc_iotcon_remote_resource_get_cached_representation_p
- Although find callback is removed, sometimes callback is called
- it is caused by timing issue
- So, need to double-check callback pointer
Change-Id: I0f6e95cd527cac349f04bc47d29cdee021c268f5
-rw-r--r-- | packaging/iotcon.spec | 2 | ||||
-rw-r--r-- | src/ic-ioty-ocprocess.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packaging/iotcon.spec b/packaging/iotcon.spec index 42be1a5..38aa22a 100644 --- a/packaging/iotcon.spec +++ b/packaging/iotcon.spec @@ -1,6 +1,6 @@ Name: iotcon Summary: Tizen IoT Connectivity -Version: 0.3.9 +Version: 0.3.10 Release: 0 Group: Network & Connectivity/Service License: Apache-2.0 diff --git a/src/ic-ioty-ocprocess.c b/src/ic-ioty-ocprocess.c index 2e1fe46..e1f8ce2 100644 --- a/src/ic-ioty-ocprocess.c +++ b/src/ic-ioty-ocprocess.c @@ -141,6 +141,10 @@ static gboolean _icl_ioty_ocprocess_find_idle_cb(gpointer p) resource = resource_list->data; resource->is_found = true; cb = (iotcon_found_resource_cb)cb_data->cb; + if (NULL == cb) { + WARN("It is already stopped"); + return G_SOURCE_REMOVE; + } INFO("Call the callback"); if (IOTCON_FUNC_STOP == cb(resource, IOTCON_ERROR_NONE, cb_data->user_data)) { /* Stop */ |