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

Commit 5bc90355 authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-merger
Browse files

Merge "Audio: Ensure input stream gets closed on the audio HAL server side"

am: d405ef1c

Change-Id: I82c9602d6a8bfa041d8db6ad213c48527d91ad9c
parents 1c6996ed d405ef1c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -117,6 +117,10 @@ TEST_F(AudioPrimaryHidlTest, GetMicrophonesTest) {
                ASSERT_NE(0U, activeMicrophones.size());
            }
            stream->close();
            // Workaround for b/139329877. Ensures the stream gets closed on the audio hal side.
            stream.clear();
            IPCThreadState::self()->flushCommands();
            usleep(1000);
            if (efGroup) {
                EventFlag::deleteEventFlag(&efGroup);
            }