Skip to content

Conversation

@jtguggedal
Copy link
Contributor

In the following scenario, the state machine may be stuck in sampling state without ever actually sampling:

  • Sampling in connected state
  • Losing connection
  • Entering disconnected state immediately attempting to sample
  • Failing check to sample because it is too soon after previous sample
  • Stuck in sampling state, but not sampling. No location event is received, so state machine is stuck here.

Introducing a fallback state argument to the function doing the check addresses this.

In the following scenario, the state machine may be stuck in
sampling state without ever actually sampling:
- Sampling in connected state
- Losing connection
- Entering disconnected state immediately attempting to sample
- Failing check to sample because it is too soon after previous
  sample
- Stuck in sampling state, but not sampling. No location event
  is received, so state machine is stuck here.

Introducing a fallback state argument to the function doing
the check addresses this.

Signed-off-by: Jan Tore Guggedal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants