mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Roll forward to cl/318932159
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: Ic18f5d83a59deaf81afec14dcf2187b8c70195eb
This commit is contained in:
@@ -50,7 +50,13 @@ class SimulationUser {
|
||||
|
||||
explicit SimulationUser(const std::string& device_name)
|
||||
: name_(device_name) {}
|
||||
virtual ~SimulationUser() = default;
|
||||
virtual ~SimulationUser() {
|
||||
Stop();
|
||||
}
|
||||
void Stop() {
|
||||
pm_.DisconnectFromEndpointManager();
|
||||
mgr_.DisconnectFromEndpointManager();
|
||||
}
|
||||
|
||||
// Calls PcpManager::StartAdvertising.
|
||||
// If latch is provided, will call latch->CountDown() in the initiated_cb
|
||||
|
||||
Reference in New Issue
Block a user