Skip to content

Commit

Permalink
added page refresh for unrecoverable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ImACoderImACoderImACoder committed Sep 1, 2024
1 parent 0311735 commit 17df446
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/bleQueueing.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ async function ProcessQueue() {
}, 0);
} catch (error) {
console.log(`QUEUE ERROR: ${error.toString()}`);
if (
error.toString().includes("Characteristic not found in cache") ||
error.toString().includes("not known for service")
) {
window.location.reload();
}
ProcessQueue();
}
}
Expand Down

0 comments on commit 17df446

Please sign in to comment.