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

Commit 964c76b3 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by gitbuildkicker
Browse files

Update the avoid bad wifi settings on the handler thread.

Currently, every call to avoidBadWifi fetches the current value
of the config variable and setting whenever it is called. This
means that the score of an unvalidated wifi network can
unpredictably change at any time, creating a data race.

Instead, persist the value and only update it when something
changes.

Bug: 31075769
Change-Id: I0f4e0e742c91ef77fabc95d3ebb494338396aca5
(cherry picked from commit 2618c1b7)
parent 41100933
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