diff --git a/Kernel/LocalSocket.cpp b/Kernel/LocalSocket.cpp index 055ef40fd5..6a0eabc435 100644 --- a/Kernel/LocalSocket.cpp +++ b/Kernel/LocalSocket.cpp @@ -97,6 +97,9 @@ RetainPtr LocalSocket::connect(const sockaddr* address, socklen_t addres bool LocalSocket::can_read(SocketRole role) const { + if (m_bound && is_listening()) + return can_accept(); + if (role == SocketRole::Accepted) return !m_for_server.is_empty(); else