mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Properly release objects when stopping BTC advertising.
PiperOrigin-RevId: 746593323
This commit is contained in:
committed by
Copybara-Service
parent
3c77c0dfa0
commit
380154d0ba
@@ -937,15 +937,17 @@ bool BluetoothClassicMedium::StopAdvertising() {
|
||||
} catch (std::exception exception) {
|
||||
LOG(ERROR) << __func__
|
||||
<< ": StopAdvertising exception: " << exception.what();
|
||||
return false;
|
||||
} catch (const winrt::hresult_error& ex) {
|
||||
LOG(ERROR) << __func__ << ": StopAdvertising exception: " << ex.code()
|
||||
<< ": " << winrt::to_string(ex.message());
|
||||
return false;
|
||||
} catch (...) {
|
||||
LOG(ERROR) << __func__ << ": Unknown exception.";
|
||||
return false;
|
||||
}
|
||||
|
||||
rfcomm_provider_ = nullptr;
|
||||
raw_server_socket_ = nullptr;
|
||||
server_socket_ = nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BluetoothClassicMedium::InitializeServiceSdpAttributes(
|
||||
|
||||
Reference in New Issue
Block a user