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

Commit 0503b823 authored by Atneya Nair's avatar Atneya Nair
Browse files

[audio] Fix AudioRecordingMonitorImpl leak

Ensure that we don't leak resources if all callbacks aren't unregistered
prior to release.

Remove handler thread to align with avoiding handler trampolines when
consuming executors, which also avoids the additional thread cost and
leak risk.

Some minor refactoring/cleanup as part of these changes.

Bug: 432245274
Flag: EXEMPT bugfix
Test: atest AudioRecordTest
Change-Id: I6a6a6964bcf78f9acc47a4eaebe45f39918011f2
parent 6ebbf65b
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