mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCore: Propagate errors from Stream::*_entire_buffer
This commit is contained in:
committed by
Andreas Kling
parent
6c7c5a6786
commit
9a3e95785e
@@ -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); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user