From ab80dbc2a3d71ff0ba5641c2d9e5e95f4ca382f3 Mon Sep 17 00:00:00 2001 From: Pu Shi Date: Fri, 7 Oct 2022 10:03:03 -0700 Subject: [PATCH] [Nearby Connections] Extend timeout waiting for StopAllEndpoints to finish. PiperOrigin-RevId: 479608809 --- connections/core.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connections/core.cc b/connections/core.cc index ad20be9c..14a3d955 100644 --- a/connections/core.cc +++ b/connections/core.cc @@ -31,7 +31,8 @@ namespace connections { namespace { -constexpr absl::Duration kWaitForDisconnect = absl::Milliseconds(5000); +// Timeout for ServiceControllerRouter to run StopAllEndpoints. +constexpr absl::Duration kWaitForDisconnect = absl::Milliseconds(10000); // Verify that |service_id| is not empty and will not conflict with any internal // service ID formats.