summaryrefslogtreecommitdiff
path: root/Libraries/LibCore
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-23 15:44:13 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-23 15:45:59 +0100
commit5f182746b6d7989127495dce45d21885bf2ea9c0 (patch)
tree66e4390e95db13de324483de3ce223592a3497ae /Libraries/LibCore
parent5f58fe16435ff27a0b2a396dab42a75a893d3e2c (diff)
downloadserenity-5f182746b6d7989127495dce45d21885bf2ea9c0.zip
LibCore: Stop logging that a Core::Socket has disconnected in receive()
This is perfectly normal and nothing we need to inform about.
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r--Libraries/LibCore/Socket.cpp4
1 files changed, 1 insertions, 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;
}