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

Commit 5d10397

Browse files
committed
Signal before return.
Caller keeps waiting if event is not signaled.
1 parent 4fda6ee commit 5d10397

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

quic_transport/impl/quic_transport_owt_client_impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,15 @@ void QuicTransportOwtClientImpl::ConnectOnCurrentThread(
129129
void QuicTransportOwtClientImpl::CloseOnCurrentThread(
130130
base::WaitableEvent* event) {
131131
if (client_ == nullptr) {
132+
event->Signal();
132133
return;
133134
}
134135
if (client_->session() == nullptr) {
136+
event->Signal();
135137
return;
136138
}
137139
if (client_->session()->connection() == nullptr) {
140+
event->Signal();
138141
return;
139142
}
140143
CHECK(client_);

0 commit comments

Comments
 (0)