Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Peripheral] Fix early lock.Leave() in UnregisterRemovedDevices in Pe…
…ripheralBus.cpp and call OnDeviceRemoved for devices with features. CriticalSection was unlocked inside 'for', could potentially cause problem in case that other thread change list of peripheral. OnDeviceRemoved wasn't called for devices with type == UNKNOWN even if device is mapped to something with usable feature.
- Loading branch information
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters