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

Commit 2d5b070b authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: RPC avoid FdTrigger shutdown race" am: 13ba6f3c am:...

Merge "libbinder: RPC avoid FdTrigger shutdown race" am: 13ba6f3c am: f2e316ac am: 650484d2 am: 02e20295 am: 7ee56703

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1838242

Change-Id: I6e78354df42387e97355bbf2427bfe10380314dd
parents 4803725c 7ee56703
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -205,8 +205,11 @@ bool RpcServer::shutdown() {
    }

    mShutdownTrigger->trigger();

    for (auto& [id, session] : mSessions) {
        (void)id;
        // server lock is a more general lock
        std::lock_guard<std::mutex> _lSession(session->mMutex);
        session->mShutdownTrigger->trigger();
    }