Report transmit logic added to nmdaemon
authori.metelytsia <i.metelytsia@samsung.com>
Wed, 17 May 2017 14:55:50 +0000 (17:55 +0300)
committeri.metelytsia <i.metelytsia@samsung.com>
Thu, 18 May 2017 08:32:00 +0000 (11:32 +0300)
device_core/iotivity_lib/IoT/IOT_Resource.cpp

index efde191..08bcab4 100644 (file)
@@ -242,6 +242,8 @@ OCStackResult IOT_Resource::publishResource(ResourceHandles& _handles, const std
                                 _query_params,
                                 [&](const HeaderOptions&, const OCRepresentation& _rep, const int _ecode)
                                 {
+                                    if(_ecode != 4)
+                                        res = OC_STACK_ERROR;
                                     cvar.notify_all();
                                 }   );
         cvar.wait(lck);