mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-06-27 23:52:53 +00:00

The new implementation would throw `ConcurrentModificationExceptions` when destroying the UIs. So let’s play it safe and put the list behind a mutex. Adds a helper class `GuardedByMutex` that can be wrapped around a property to force all use-sites to acquire the lock before doing anything with the data.