smartdevicelink/sdl_javascript_suite

Queued PresentChoiceSetOperation are not executed if the previous operation is allowed to timeout

Closed this issue · 0 comments

Bug Report

If a developer tries to present a ChoiceSet while another is currently being presented, and the first ChoiceSet is then allowed to timeout, the second ChoiceSet does not get displayed.

Reproduction Steps
  1. Present a ChoiceSet with the manager.
  2. Once the ChoiceSet has been presented, present another ChoiceSet with the manager.
  3. Don't select an option from the Choices in the HMI and allow it to timeout.
Expected Behavior

The PresentChoiceSetOperation of the first ChoiceSet is canceled when the second is added, but the interaction is allowed to complete, and the second ChoiceSet is presented.

Observed Behavior

The PresentChoiceSetOperation of the first ChoiceSet is canceled when the second is added, the interaction completes, but the task queue doesn't execute the task to preload the second ChoiceSet.