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

Commit 91b1f832 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix missing check of hidl return status"

parents bf2fbb73 09a90ab5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -233,9 +233,9 @@ DrmHal::DrmHal()

void DrmHal::closeOpenSessions() {
    if (mPlugin != NULL) {
        for (size_t i = 0; i < mOpenSessions.size(); i++) {
            mPlugin->closeSession(toHidlVec(mOpenSessions[i]));
            DrmSessionManager::Instance()->removeSession(mOpenSessions[i]);
        auto openSessions = mOpenSessions;
        for (size_t i = 0; i < openSessions.size(); i++) {
            closeSession(openSessions[i]);
        }
    }
    mOpenSessions.clear();