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

Skip to content
Commit 8a4d25c2 authored by zhoutengteng's avatar zhoutengteng Committed by Andre Eisenbach
Browse files

Fix deadlock of mObject and mDevices in RemoteDevices



In RemoteDevices.java, the object mObject and mDevices are used
for synchronized, but there are some cases that two threads come
into deadlock between mObject and mDevices. This solution makes
sure that the thread of devicePropertyChangedCallback does not
require two objects at a same time to avoid the deadlock.

Fixes: 78784797
Test: Compile; unable to trigger race condition reliably
Change-Id: I0987ca9cd29d363faa3b43b7844db675401ef354
Signed-off-by: default avatarzhoutengteng <zhoutengteng@xiaomi.com>
parent dddfc485
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