Skip to content

Commit

Permalink
[CommissioningWindowManager] Ensure Shutdown does nothing if Init has…
Browse files Browse the repository at this point in the history
… not been called
  • Loading branch information
vivien-apple committed Oct 5, 2024
1 parent 333194b commit a6fdde2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/server/CommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ void CommissioningWindowManager::OnPlatformEvent(const DeviceLayer::ChipDeviceEv

void CommissioningWindowManager::Shutdown()
{
VerifyOrReturn(nullptr != mServer);

StopAdvertisement(/* aShuttingDown = */ true);

ResetState();
Expand Down

0 comments on commit a6fdde2

Please sign in to comment.