Merge "libbinder: better RpcSession shutdown detail logs" am: f94b148bbd am: 59f39095fe am: edff82ea53 am: 5e94b8fb03

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

Change-Id: Ic06c9dde8906da27d98b728770fcb0fc0b738cc4
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp
index 555c5ed..b521266 100644
--- a/libs/binder/RpcServer.cpp
+++ b/libs/binder/RpcServer.cpp
@@ -182,7 +182,7 @@
 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 @@
         mJoinThread.reset();
     }
 
+    LOG_RPC_DETAIL("Finished waiting on shutdown.");
+
     mShutdownTrigger = nullptr;
     return true;
 }