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

Commit bb00d28d authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Close and remove HubEndpointSession before invoking onSessionClosed callback.

This change ensures that the `HubEndpointSession` is marked as closed and removed from the active sessions map before the `mLifecycleCallback.onSessionClosed` is executed. This prevents a race condition where a client potentially re-opens a session with the same ID within the onSessionClosed callback, which can be removed from `mActiveSessions` in the existing code.

Bug: 443346395
Flag: EXEMPT bug fix
Test: Presubmits
Change-Id: I7917fdd4fe6718ec0c142c05b4f2e82b6dabc394
parent d0075dd9
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