Skip to content

Commit

Permalink
Make sure to actually not advertise with CM=1 when we're not commissi…
Browse files Browse the repository at this point in the history
…onable. (#15834)

The boolean passed to StopAdvertisement was wrong, which meant we didn't actually
stop/restart our DNS-SD advertising when we should have
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 20, 2024
1 parent c968422 commit ee01e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/server/CommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void CommissioningWindowManager::OnSessionEstablished()

DeviceLayer::PlatformMgr().AddEventHandler(OnPlatformEventWrapper, reinterpret_cast<intptr_t>(this));

StopAdvertisement(/* aShuttingDown = */ true);
StopAdvertisement(/* aShuttingDown = */ false);
ChipLogProgress(AppServer, "Device completed Rendezvous process");
}

Expand Down

0 comments on commit ee01e70

Please sign in to comment.