Set a separate shorter timeout (10s) for REMOTE_DISCONNECTION

PiperOrigin-RevId: 570795839
This commit is contained in:
hai007
2023-10-04 13:51:54 -07:00
committed by Copybara-Service
parent 264aa3829f
commit dfd3de80cf
5 changed files with 30 additions and 10 deletions
@@ -76,6 +76,9 @@ ClientProxy::ClientProxy(::nearby::analytics::EventLogger* event_logger)
local_safe_to_disconnect_version_ = NearbyFlags::GetInstance().GetInt64Flag(
config_package_nearby::nearby_connections_feature::
kSafeToDisconnectVersion);
NEARBY_LOGS(INFO) << "[safe-to-disconnect]: Local enabled: "
<< supports_safe_to_disconnect_
<< "; Version_: " << local_safe_to_disconnect_version_;
}
ClientProxy::~ClientProxy() { Reset(); }