Skip to content

Commit

Permalink
Release commissionee device pool on exit (#16127)
Browse files Browse the repository at this point in the history
* Release commissionee device pool on exit

* Update src/controller/CHIPDeviceController.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 8, 2023
1 parent dfae7d7 commit 1428417
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ CHIP_ERROR DeviceCommissioner::Shutdown()
}
#endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY

// Release everything from the commissionee device pool here. DeviceController::Shutdown releases operational.
mCommissioneeDevicePool.ReleaseAll();

DeviceController::Shutdown();
return CHIP_NO_ERROR;
}
Expand Down

0 comments on commit 1428417

Please sign in to comment.