projects
/
platform
/
core
/
csapi
/
tizenfx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be589de
)
csapi-sensor: check if the sensor is started or not when Stop() is called
author
kibak.yoon
<kibak.yoon@samsung.com>
Thu, 27 Oct 2016 03:26:57 +0000
(12:26 +0900)
committer
kibak.yoon
<kibak.yoon@samsung.com>
Thu, 27 Oct 2016 03:26:57 +0000
(12:26 +0900)
Change-Id: I2674d2e5e78f092fe8108779f4712ce28c4b3d5d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
patch
|
blob
|
history
diff --git
a/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
b/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
index
041d581
..
5589d43
100755
(executable)
--- a/
src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
+++ b/
src/Tizen.Sensor/Tizen.Sensor/Sensor.cs
@@
-303,7
+303,7
@@
namespace Tizen.Sensor
public void Stop()
{
Log.Info(Globals.LogTag, "Stopping the sensor");
- if (
CheckListenerHandle()
)
+ if (
_isSensing
)
{
int error = Interop.SensorListener.StopListener(_listenerHandle);
if (error != (int)SensorError.None)