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 <bzbarsky@apple.com>

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
2 people authored and pull[bot] committed May 17, 2022
1 parent 8871a64 commit 3255242
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 3255242

Please sign in to comment.