LibCore: Propagate errors from Stream::*_entire_buffer

This commit is contained in:
Tim Schumacher 2022-12-11 19:21:36 +01:00 committed by Andreas Kling
commit 9a3e95785e
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00
17 changed files with 43 additions and 49 deletions

View file

@ -21,7 +21,7 @@ bool WebSocketImplSerenity::can_read_line()
bool WebSocketImplSerenity::send(ReadonlyBytes bytes)
{
return m_socket->write_entire_buffer(bytes);
return !m_socket->write_entire_buffer(bytes).is_error();
}
bool WebSocketImplSerenity::eof()