mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibCore: Propagate errors from Stream::*_entire_buffer
This commit is contained in:
parent
6c7c5a6786
commit
9a3e95785e
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/timschumi
Commit: 9a3e95785e
Pull-request: https://github.com/SerenityOS/serenity/pull/16429
Reviewed-by: https://github.com/sin-ack ✅
17 changed files with 43 additions and 49 deletions
|
@ -220,7 +220,7 @@ void Job::on_socket_connected()
|
|||
dbgln("{}", DeprecatedString::copy(raw_request));
|
||||
}
|
||||
|
||||
bool success = m_socket->write_entire_buffer(raw_request);
|
||||
bool success = !m_socket->write_entire_buffer(raw_request).is_error();
|
||||
if (!success)
|
||||
deferred_invoke([this] { did_fail(Core::NetworkJob::Error::TransmissionFailed); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue