mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[Nearby Connections] Add methods to shutdown executors in bwu_manager
Adding methods that allow us to shutdown executors in bwu_manager during Nearby Connections shutdown process to prevent potential crashes. PiperOrigin-RevId: 466425604
This commit is contained in:
@@ -368,6 +368,7 @@ void ServiceControllerRouter::FinishClientSession(ClientProxy* client) {
|
||||
// Stop any advertising and discovery that may be underway due to this client.
|
||||
GetServiceController()->StopAdvertising(client);
|
||||
GetServiceController()->StopDiscovery(client);
|
||||
GetServiceController()->ShutdownBwuManagerExecutors();
|
||||
|
||||
// Finally, clear all state maintained by this client.
|
||||
client->Reset();
|
||||
|
||||
Reference in New Issue
Block a user