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

Commit 9d6c8db4 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "lshal: close fd before joining thread" am: 16b9f38d am: e13b6b62

am: 41e15446

Change-Id: I052e7988c857de51e273af44f716d347813c8073
parents 54a7ab49 41e15446
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -77,13 +77,12 @@ void PipeRelay::CloseFd(int *fd) {


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


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

    CloseFd(&mFds[0]);
}
}


status_t PipeRelay::initCheck() const {
status_t PipeRelay::initCheck() const {