forked from upstream-mirrors/OpenTracks
@@ -120,11 +120,12 @@ public class TrackRecordingService extends Service implements TrackPointCreator.
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
trackPointCreator.stop();
|
||||
trackPointCreator = null;
|
||||
|
||||
handler.removeCallbacksAndMessages(null); //Some tests do not finish the recording completely
|
||||
handler = null;
|
||||
|
||||
trackPointCreator.stop();
|
||||
trackPointCreator = null;
|
||||
trackRecordingManager.stop();
|
||||
trackRecordingManager = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user