diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-23 15:44:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-23 15:45:59 +0100 |
commit | 5f182746b6d7989127495dce45d21885bf2ea9c0 (patch) | |
tree | 66e4390e95db13de324483de3ce223592a3497ae /Libraries/LibCore | |
parent | 5f58fe16435ff27a0b2a396dab42a75a893d3e2c (diff) | |
download | serenity-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.cpp | 4 |
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; } |