Fix duplicated URI error 64/265364/3 accepted/tizen/unified/20211108.181415 submit/tizen/20211103.072537 submit/tizen/20211104.032902
authortaemin.yeom <taemin.yeom@samsung.com>
Fri, 15 Oct 2021 10:11:54 +0000 (19:11 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 18 Oct 2021 09:22:44 +0000 (09:22 +0000)
Change-Id: I26e2cec90d51625aa14223ea4beae7c2ea871f6f
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
src/client/sensor_manager.cpp

index bcb86d5a5f03c8c724e01555555ca49131d46622..cec62609570553be5d12e33e396a0f5a9383d334 100644 (file)
@@ -303,6 +303,9 @@ bool sensor_manager::get_sensors_internal(void)
 
        reply.disclose(buf, MAX_BUF_SIZE);
 
+       if (!m_sensors.empty())
+               m_sensors.clear();
+
        decode_sensors(buf, m_sensors);
 
        return true;