Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from jianjunz/signal
Browse files Browse the repository at this point in the history
Signal before return.
  • Loading branch information
taste1981 authored Apr 6, 2021
2 parents 4fda6ee + 5d10397 commit 306912b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quic_transport/impl/quic_transport_owt_client_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,15 @@ void QuicTransportOwtClientImpl::ConnectOnCurrentThread(
void QuicTransportOwtClientImpl::CloseOnCurrentThread(
base::WaitableEvent* event) {
if (client_ == nullptr) {
event->Signal();
return;
}
if (client_->session() == nullptr) {
event->Signal();
return;
}
if (client_->session()->connection() == nullptr) {
event->Signal();
return;
}
CHECK(client_);
Expand Down

0 comments on commit 306912b

Please sign in to comment.