Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bd698f15 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Prevent ConcurrentModificationException

While dispatching a change to callbacks, if one of them removes itself
as part of the operation, it would cause a
ConcurrentModificationException (because it's in the same thread, so
it's re-entrant).

Prevent this by copying the list before dispatching.

Test: atest CastControllerImplTest
Fixes: 317700495
Flag: None

Change-Id: I8fed9957dd167437f3c3e9bde3ccbb48b0b4f6c3
parent 77c5fef8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment