[core] fix segfault in http response streaming
Change-Id: I61a0167d8a7fdede96075960f5099b33c0a8ab02
This commit is contained in:
parent
d8bd405a19
commit
a41b92eb8a
|
@ -200,8 +200,7 @@ static void stream_http_response_data(liStreamHttpResponse* shr) {
|
|||
} else {
|
||||
li_stream_reset(&shr->stream);
|
||||
}
|
||||
}
|
||||
if (shr->stream.source->out->is_closed) {
|
||||
} else if (shr->stream.source->out->is_closed) {
|
||||
li_stream_disconnect(&shr->stream);
|
||||
}
|
||||
} else if (shr->wait_for_close) {
|
||||
|
|
Loading…
Reference in New Issue