mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Minor comment cleanup
PiperOrigin-RevId: 683690113
This commit is contained in:
committed by
Copybara-Service
parent
1b382075dd
commit
835e5d16c3
@@ -116,7 +116,6 @@ bool MultiplexOutputStream::Close(const std::string& service_id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// auto service_id_hash_salt = item->second->GetServiceIdHashSalt();
|
||||
item->second->Close();
|
||||
if (is_enabled_.Get()) {
|
||||
Future<bool> future;
|
||||
|
||||
@@ -306,7 +306,7 @@ bool ConnectionFlow::OnRemoteIceCandidatesReceived(
|
||||
pc->signaling_thread()->PostTask(
|
||||
[this, can_run_tasks = std::weak_ptr<void>(can_run_tasks_),
|
||||
candidates = std::move(ice_candidates)]() mutable {
|
||||
// don't run the task if the weak_ptr is no longer valid.
|
||||
// Don't run the task if the weak_ptr is no longer valid.
|
||||
if (!can_run_tasks.lock()) {
|
||||
return;
|
||||
}
|
||||
@@ -529,7 +529,7 @@ bool ConnectionFlow::RunOnSignalingThread(Runnable&& runnable) {
|
||||
pc->signaling_thread()->PostTask(
|
||||
[can_run_tasks = std::weak_ptr<void>(can_run_tasks_),
|
||||
task = std::move(runnable)]() mutable {
|
||||
// don't run the task if the weak_ptr is no longer valid.
|
||||
// Don't run the task if the weak_ptr is no longer valid.
|
||||
// shared_ptr |can_run_tasks_| is destroyed on the same thread
|
||||
// (signaling thread). This guarantees that if the weak_ptr is valid
|
||||
// when this task starts, it will stay valid until the task ends.
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace mediums {
|
||||
|
||||
// Callbacks from the data channel.
|
||||
struct DataChannelListener {
|
||||
// Called when the data channel is open and the socket wraper is ready to
|
||||
// Called when the data channel is open and the socket wrapper is ready to
|
||||
// read and write.
|
||||
absl::AnyInvocable<void(WebRtcSocketWrapper)> data_channel_open_cb =
|
||||
[](WebRtcSocketWrapper) {};
|
||||
|
||||
Reference in New Issue
Block a user