summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp')
-rw-r--r--Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
index 42ea661c71..99dc9e89f2 100644
--- a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
+++ b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
@@ -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()