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

Skip to content
Commit 4854c717 authored by paulhu's avatar paulhu Committed by Paul Hu
Browse files

Replace ArrayList with a CopyOnWriteArrayList

RegularMaintenanceJobService use same ArrayList on both
omComplete and onStopJob methods, it's unsafe and will cause
ConcurrentModificationException when reading and removing
value at same time. Thus, replace ArrayList with
a CopyOnWriteArrayList.

Bug: 161205152
Test: atest NetworkStackTests
Change-Id: I3914e9ddc05e37d4deaa8846d7c3ba742160a788
parent 2b0d8046
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment