mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibProtocol: Close the stream notifier unconditionally on EOF
We shouldn't wait for on_finish to close the read notifier, we'll get the finished message when we do, no need to spin waiting for it.
This commit is contained in:
parent
0e173da86f
commit
8fa334a70c
Notes:
sideshowbarker
2024-07-17 18:35:55 +09:00
Author: https://github.com/alimpfard
Commit: 8fa334a70c
Pull-request: https://github.com/SerenityOS/serenity/pull/12623
1 changed files with 3 additions and 2 deletions
|
@ -60,10 +60,11 @@ void Request::stream_into_impl(T& stream)
|
|||
}
|
||||
} while (true);
|
||||
|
||||
if (m_internal_stream_data->read_stream->is_eof() && m_internal_stream_data->request_done) {
|
||||
if (m_internal_stream_data->read_stream->is_eof())
|
||||
m_internal_stream_data->read_notifier->close();
|
||||
|
||||
if (m_internal_stream_data->request_done)
|
||||
m_internal_stream_data->on_finish();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue