Add try-catch for sensord_disconnect function 33/311033/1 accepted/tizen/unified/20240516.163519
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:27 +0000 (16:33 +0900)
commit08020429fea30eac0b2e8078f95f48e59c242cc1
treed1b68c122a31282a73a607194d2c777db589d2b1
parentd1a5519bfd9b989d7c914c67806edb22c813d9de
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