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

Commit 1c943ec8 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: better RpcSession shutdown detail logs

If shutdown was called before, it looked like it failed, when really it
had already completed.

Bug: N/A
Test: N/A
Change-Id: I86183b95b0896fd533bbaa291d09cf44422fec1e
parent d195645e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ void RpcServer::join() {
bool RpcServer::shutdown() {
    std::unique_lock<std::mutex> _l(mLock);
    if (mShutdownTrigger == nullptr) {
        LOG_RPC_DETAIL("Cannot shutdown. No shutdown trigger installed.");
        LOG_RPC_DETAIL("Cannot shutdown. No shutdown trigger installed (already shutdown?)");
        return false;
    }

@@ -212,6 +212,8 @@ bool RpcServer::shutdown() {
        mJoinThread.reset();
    }

    LOG_RPC_DETAIL("Finished waiting on shutdown.");

    mShutdownTrigger = nullptr;
    return true;
}