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();