mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[iOS] Fix L2CAP crash issue.
PiperOrigin-RevId: 765077236
This commit is contained in:
committed by
Copybara-Service
parent
c50e619438
commit
bbc56c10ec
@@ -57,6 +57,11 @@ bool BleL2capServerSocket::AddPendingSocket(std::unique_ptr<BleL2capSocket> sock
|
||||
return !closed_;
|
||||
}
|
||||
|
||||
void BleL2capServerSocket::SetCloseNotifier(absl::AnyInvocable<void()> notifier) {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
close_notifier_ = std::move(notifier);
|
||||
}
|
||||
|
||||
Exception BleL2capServerSocket::Close() {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
return DoClose();
|
||||
|
||||
Reference in New Issue
Block a user