Add try-catch for sensord_disconnect function 32/311032/1 accepted/tizen/8.0/unified/20240514.160752
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 13 May 2024 06:49:28 +0000 (15:49 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Mon, 13 May 2024 07:33:10 +0000 (16:33 +0900)
commit0dc3bd427c51334b9beb40316b2368c7eed697a4
tree9a6778179ef0f75ff3ade36bc45d69ba0db779d4
parent63d64317c866be33bf075872ce0d40275151d410
Add try-catch for sensord_disconnect function

The capi function 'sensor_destroy_listener' can throw
std::invalid_argument but this function can be used in C(which cannot
handle thrown exceptions) so a try-catch statement is added to handle
this exception.

This patch will solve the SVACE report with WGID 203810.

Change-Id: I5eda70a6afb62f63c823df6f96c73271872def4d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/sensor.cpp