From 5f182746b6d7989127495dce45d21885bf2ea9c0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 23 Dec 2020 15:44:13 +0100 Subject: [PATCH] LibCore: Stop logging that a Core::Socket has disconnected in receive() This is perfectly normal and nothing we need to inform about. --- Libraries/LibCore/Socket.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/LibCore/Socket.cpp b/Libraries/LibCore/Socket.cpp index 052a20d0db..98d8b2566a 100644 --- a/Libraries/LibCore/Socket.cpp +++ b/Libraries/LibCore/Socket.cpp @@ -184,10 +184,8 @@ bool Socket::common_connect(const struct sockaddr* addr, socklen_t addrlen) ByteBuffer Socket::receive(int max_size) { auto buffer = read(max_size); - if (eof()) { - dbg() << *this << " connection appears to have closed in receive()."; + if (eof()) m_connected = false; - } return buffer; }