From e58e00b3c51f8c26e217e64c634677793930d40b Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Sat, 9 Mar 2024 03:24:26 +0100 Subject: [PATCH] android:actTrk: fix logic re clear interval --- apps/android/boot.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/android/boot.js b/apps/android/boot.js index 818fd60f92..6b7d81b72c 100644 --- a/apps/android/boot.js +++ b/apps/android/boot.js @@ -244,9 +244,12 @@ //{t:"fetchRec", id:"20230616a"} "fetchRec": function() { // TODO: Decide on what names keys should have. - if (event.id=="stop") { - if (fetchRecInterval) clearInterval(fetchRecInterval); + if (fetchRecInterval) { + clearInterval(fetchRecInterval); fetchRecInterval = undefined; + } + if (event.id=="stop") { + return } else { let log = require("Storage").open("recorder.log"+event.id+".csv","r"); let lines = "init";// = log.readLine();