Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in NimBLEScan::clearResults.
If clear results is called from more than one task a race condition exists that may delete the same advertisedDevice twice. This prevents this by swapping with an empty vector and testing for empty before freeing the resources.
- Loading branch information