mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibGemini+LibHTTP: Defer did_progress call to match other callbacks
This commit is contained in:
parent
4214680e76
commit
87cb28fcf7
Notes:
sideshowbarker
2024-07-19 06:34:04 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/87cb28fcf75 Pull-request: https://github.com/SerenityOS/serenity/pull/2218 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ void Job::on_socket_connected()
|
|||
m_received_buffers.append(payload);
|
||||
m_received_size += payload.size();
|
||||
|
||||
did_progress({}, m_received_size);
|
||||
deferred_invoke([this](auto&) { did_progress({}, m_received_size); });
|
||||
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
|
|
@ -268,7 +268,7 @@ void Job::on_socket_connected()
|
|||
content_length = length;
|
||||
}
|
||||
|
||||
did_progress(content_length, m_received_size);
|
||||
deferred_invoke([this, content_length](auto&) { did_progress(content_length, m_received_size); });
|
||||
|
||||
if (content_length.has_value()) {
|
||||
auto length = content_length.value();
|
||||
|
|
Loading…
Reference in a new issue