mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Call StopScan() when ScanSession goes out of scope and make sure stop can only be called once.
PiperOrigin-RevId: 488717591
This commit is contained in:
committed by
Copybara-Service
parent
7a918e8310
commit
beb67fc02a
@@ -21,8 +21,7 @@ namespace presence {
|
||||
|
||||
std::unique_ptr<ScanSession> ServiceControllerImpl::StartScan(
|
||||
ScanRequest scan_request, ScanCallback callback) {
|
||||
return std::make_unique<ScanSession>(
|
||||
scan_manager_.StartScan(scan_request, callback));
|
||||
return scan_manager_.StartScan(scan_request, callback);
|
||||
}
|
||||
std::unique_ptr<BroadcastSession> ServiceControllerImpl::StartBroadcast(
|
||||
BroadcastRequest broadcast_request, BroadcastCallback callback) {
|
||||
|
||||
Reference in New Issue
Block a user