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

Commit f10433f8 authored by Shuo Qian's avatar Shuo Qian
Browse files

Synchronize mRadioProxy and mOemHookProxy

We need a lock to control the write and read methods of mRadioProxy and mOemHookProxy
 to prevent race condition that may cause crashes. Making resetProxyAndRequestList
 synchronized can help with this.

Test: manual flashed the build; made a call successfully
Bug: 142333643
Change-Id: I6b0da6fe0afe0ae4db99c680518afdb6f441182f
Merged-In: I6b0da6fe0afe0ae4db99c680518afdb6f441182f
(cherry picked from commit 8f7c1195)
parent 7bc44233
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -393,7 +393,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
        }
        }
    }
    }


    private void resetProxyAndRequestList() {
    private synchronized void resetProxyAndRequestList() {
        mRadioProxy = null;
        mRadioProxy = null;
        mOemHookProxy = null;
        mOemHookProxy = null;