Skip to content

Commit

Permalink
Don't expire failsafe when commissioning window closes (#19695)
Browse files Browse the repository at this point in the history
No longer expire the failsafe timer when the commission window
closes either due to open window timeout or
RevokeCommissioning command
  • Loading branch information
tehampson authored and pull[bot] committed Aug 9, 2022
1 parent ee24a7a commit 1631428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/server/CommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ void CommissioningWindowManager::ResetState()
void CommissioningWindowManager::Cleanup()
{
StopAdvertisement(/* aShuttingDown = */ false);
ExpireFailSafeIfArmed();

ResetState();
}

Expand Down
3 changes: 2 additions & 1 deletion src/app/server/CommissioningWindowManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class CommissioningWindowManager : public SessionEstablishmentDelegate,
void OnSessionEstablished(const SessionHandle & session) override;

void Shutdown();
void Cleanup();

void OnPlatformEvent(const DeviceLayer::ChipDeviceEvent * event);

Expand Down Expand Up @@ -130,6 +129,8 @@ class CommissioningWindowManager : public SessionEstablishmentDelegate,
// differently.
void ResetState();

void Cleanup();

/**
* Function that gets called when our commissioning window timeout timer
* fires.
Expand Down

0 comments on commit 1631428

Please sign in to comment.