Commit c5c671fa authored by zhujiashun's avatar zhujiashun Committed by gejun

Fix the race when creating agent socket

parent f12bd910
......@@ -1534,10 +1534,7 @@ void H2GlobalStreamCreator::ReplaceSocketForStream(
break;
}
H2Context* ctx = static_cast<H2Context*>((*inout)->_agent_socket->parsing_context());
if (ctx == NULL) {
break;
}
if (ctx->RunOutStreams()) {
if (ctx && ctx->RunOutStreams()) {
break;
}
(*inout)->_agent_socket->ReAddress(inout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment