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

Commit 16b9f38d authored by Yifan Hong's avatar Yifan Hong Committed by Gerrit Code Review
Browse files

Merge "lshal: close fd before joining thread"

parents ad0f33ea b9d19c87
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -77,13 +77,12 @@ void PipeRelay::CloseFd(int *fd) {

PipeRelay::~PipeRelay() {
    CloseFd(&mFds[1]);
    CloseFd(&mFds[0]);

    if (mThread != nullptr) {
        mThread->join();
        mThread.clear();
    }

    CloseFd(&mFds[0]);
}

status_t PipeRelay::initCheck() const {