Skip to content

Commit

Permalink
Handle errors in sending messages during commissioning.
Browse files Browse the repository at this point in the history
The commissioning state machine, when handling a state, needs to either queue up
an async process that will eventually push the state machine along or needs to
fail out and stop the commissioning process.  We had a number of state handlers
that could fail to do both if the attempt to send the message failed, which
would leave the commissioner in a stuck state where it thought it was waiting
for the async work, while the async work was not queued.

This change adds the relevant error checks to ensure we never wait for work that
has not started.

Fixes project-chip#30041
  • Loading branch information
bzbarsky-apple committed Oct 27, 2023
1 parent 28de696 commit b05cfe6
Showing 1 changed file with 171 additions and 37 deletions.
Loading

0 comments on commit b05cfe6

Please sign in to comment.