forked from upstream-mirrors/OpenTracks
Bugfix: if sensors are running, do not try to start again.
Fixes #1887.
This commit is contained in:
@@ -205,6 +205,7 @@ public class TrackRecordingService extends Service implements TrackPointCreator.
|
||||
private synchronized void startSensors() {
|
||||
if (isSensorStarted()) {
|
||||
Log.i(TAG, "sensors already started; skipping");
|
||||
return;
|
||||
}
|
||||
Log.i(TAG, "startSensors");
|
||||
wakeLock = SystemUtils.acquireWakeLock(this, wakeLock);
|
||||
|
||||
Reference in New Issue
Block a user