Remove always-true check in receivepacket error handling

This commit is contained in:
Robin Linden
2022-01-08 20:31:11 +01:00
parent f78c741790
commit 23df660fd2
2 changed files with 2 additions and 2 deletions
@@ -1 +1 @@
6ca8302e5d61c8b40f4c9eb14e16d4ff1e283fe594b90b268a8ad022d0c28128 /usr/local/bin/tox-bootstrapd
973f8254b9f8c50cbf0df93fb609d83bfeaeffdcbe7b836d6e0f701bdabf493f /usr/local/bin/tox-bootstrapd
+1 -1
View File
@@ -605,7 +605,7 @@ static int receivepacket(const Logger *log, Socket sock, IP_Port *ip_port, uint8
if (fail_or_len < 0) {
int error = net_error();
if (fail_or_len < 0 && !should_ignore_recv_error(error)) {
if (!should_ignore_recv_error(error)) {
const char *strerror = net_new_strerror(error);
LOGGER_ERROR(log, "Unexpected error reading from socket: %u, %s", error, strerror);
net_kill_strerror(strerror);