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
cecille and bzbarsky-apple authored Mar 15, 2022
1 parent acf130a commit 494cfb2
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 494cfb2

Please sign in to comment.