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

Commit e028e46d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "~RpcServer() calls shutdown explicitly." am: de10257e am: 4a0fad36

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

Change-Id: Ica25135939fcbb75f8caa596e5dd23a3405f5c38
parents 0fc2988d 4a0fad36
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -39,7 +39,9 @@ using base::ScopeGuard;
using base::unique_fd;

RpcServer::RpcServer() {}
RpcServer::~RpcServer() {}
RpcServer::~RpcServer() {
    (void)shutdown();
}

sp<RpcServer> RpcServer::make() {
    return sp<RpcServer>::make();
@@ -204,7 +206,6 @@ bool RpcServer::acceptOneNoCheck() {
}

bool RpcServer::shutdown() {
    LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!");
    std::unique_lock<std::mutex> _l(mLock);
    if (mShutdownTrigger == nullptr) return false;