Skip to content

Commit

Permalink
android:actTrk: fix logic re clear interval
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Mar 9, 2024
1 parent e202f66 commit e58e00b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e58e00b

Please sign in to comment.