Skip to content

Commit

Permalink
Update src/app/clusters/network-commissioning/network-commissioning.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Karsten Sperling <[email protected]>
  • Loading branch information
DejinChen and ksperling-apple authored Sep 2, 2024
1 parent be2f8ad commit 3ec62b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ void Instance::DisconnectOtherNetworks(Instance * currentNetwork)
return (networkNo == maxNetworks) ? Loop::Break : Loop::Continue;
});

// If none of the configured networks is `connected`, we may have a
// lingering connection to a different network that we need to disconnect.
if (!haveConnectedNetwork)
{
/* It's different to check the media driver connection state here.
Expand Down

0 comments on commit 3ec62b3

Please sign in to comment.