We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a158c commit 2289749Copy full SHA for 2289749
src/controller/CHIPDeviceController.cpp
@@ -921,7 +921,12 @@ void DeviceCommissioner::OnSessionEstablished()
921
mPairedDevices.Insert(device->GetDeviceId());
922
mPairedDevicesUpdated = true;
923
924
+ // Note - This assumes storage is synchronous, the device must be in storage before we can cleanup
925
+ // the rendezvous session and mark pairing success
926
PersistDevice(device);
927
+ // Also persist the device list at this time
928
+ // This makes sure that a newly added device is immediately available
929
+ PersistDeviceList();
930
931
if (mPairingDelegate != nullptr)
932
{
0 commit comments