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

Commit bd0648d5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix race condition in HubEndpoint active sessions" into main

parents e549b5b1 f3722be6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -404,11 +404,11 @@ public class HubEndpoint {

        HubEndpointSession newSession;
        try {
            synchronized (mLock) {
                // Request system service to assign session id.
                int sessionId = mServiceToken.openSession(destinationInfo, serviceDescriptor);

                // Save the newly created session
            synchronized (mLock) {
                newSession =
                        new HubEndpointSession(
                                sessionId,