Skip to content

Commit

Permalink
android:actTrk: fix logic re "stop" keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Mar 8, 2024
1 parent 89354a8 commit 8439681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@
//{t:"fetchRec", id:"20230616a"}
"fetchRec": function() {
// TODO: Decide on what names keys should have.
if (event.id=="stop" && fetchRecInterval) {
clearInterval(fetchRecInterval);
if (event.id=="stop") {
if (fetchRecInterval) clearInterval(fetchRecInterval);
fetchRecInterval = undefined;
} else {
let log = require("Storage").open("recorder.log"+event.id+".csv","r");
Expand Down

0 comments on commit 8439681

Please sign in to comment.