Skip to content

Commit

Permalink
Add hilariously forgotten word Async in SendAsync.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Mar 5, 2024
1 parent bd23321 commit d10448f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/source/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ task<void> Channel::Send(const Buffer &data) {

orc_assert(channel_ != nullptr);
if (channel_->buffered_amount() == 0)
channel_->Send({buffer, true});
// XXX: consider blocking this fiber on this error result?
channel_->SendAsync({buffer, true}, [](webrtc::RTCError){});

co_return;
}
Expand Down

0 comments on commit d10448f

Please sign in to comment.