Fix caching bug - send GET request when starting caching 66/70866/3
authorsung.goo.kim <sung.goo.kim@samsung.com>
Mon, 23 May 2016 05:51:58 +0000 (14:51 +0900)
committerSunggoo Kim <sung.goo.kim@samsung.com>
Mon, 23 May 2016 06:44:19 +0000 (23:44 -0700)
Change-Id: Ifd40b4116b68038efc4eea5892c40bc9504b88fc

lib/icl-ioty.c

index 2046e0ecb4d4eb366c0fdf170e97061d12cceb42..6a54536c4973e8a9dff7df91293062334782476a 100644 (file)
@@ -1256,6 +1256,8 @@ int icl_ioty_remote_resource_start_caching(iotcon_remote_resource_h resource,
        }
        cb_container->observe_handle = IC_POINTER_TO_INT64(handle);
 
+       _icl_ioty_caching_idle_cb(cb_container);
+
        _icl_ioty_remote_resource_caching_table_insert(resource, cb_container);
 
        return IOTCON_ERROR_NONE;