LibCore: Stop logging that a Core::Socket has disconnected in receive()

This is perfectly normal and nothing we need to inform about.
This commit is contained in:
Andreas Kling 2020-12-23 15:44:13 +01:00
parent 5f58fe1643
commit 5f182746b6

View file

@ -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;
}