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

Commit c6589f9e authored by Golden Hsu's avatar Golden Hsu Committed by Shuzhen Wang
Browse files

getSessionCharacteristic bug fix

close session in the end of for loop

Bug: 337711677
Test: Vendor testing
Change-Id: Ie82622af10079fe7e882cabd4eccdcc1e59a5464
parent 09c71e42
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -341,6 +341,10 @@ TEST_P(CameraAidlTest, getSessionCharacteristics) {
            ret = device->getSessionCharacteristics(config, &session_chars);
            ASSERT_TRUE(ret.isOk());
            verifySessionCharacteristics(session_chars, camera_chars);

            ret = mSession->close();
            mSession = nullptr;
            ASSERT_TRUE(ret.isOk());
        }
    } else {
        ALOGI("getSessionCharacteristics: Test skipped.\n");