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

Commit d51753b4 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

am: 5bc90355

Change-Id: I127f5317523bfc028d00c72f76bb27ea90fa0b1c
parents e6787eee 5bc90355
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);
            }