Skip to content

Commit

Permalink
Merge pull request #100 from mario-bermonti:mario-bermonti/issue93
Browse files Browse the repository at this point in the history
Allow starting a new digit span task while a digit span task is already running
  • Loading branch information
mario-bermonti authored Nov 21, 2024
2 parents 45b4c11 + bcb159e commit 350be4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/ema/run_ema_tasks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Future<void> runEMATasks() async {
config.nextScreen = '/loading';
emaTasks.shuffle();
for (Function emaTask in emaTasks) {
// TODO: Find a better solution. See issue #99.
/// This temporary solution allows starting a cognitive task if a cognitive
/// task is already running, but has serious side effects.
Get.deleteAll();
await emaTask();
}
Get.toNamed('/');
Expand Down

0 comments on commit 350be4d

Please sign in to comment.