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

Commit 13ba6f3c authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder: RPC avoid FdTrigger shutdown race"

parents 76473a11 ab3f442e
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();
    }