mirror of
https://github.com/TokTok/c-toxcore
synced 2026-05-28 05:04:41 +00:00
Remove always-true check in receivepacket error handling
This commit is contained in:
@@ -1 +1 @@
|
||||
6ca8302e5d61c8b40f4c9eb14e16d4ff1e283fe594b90b268a8ad022d0c28128 /usr/local/bin/tox-bootstrapd
|
||||
973f8254b9f8c50cbf0df93fb609d83bfeaeffdcbe7b836d6e0f701bdabf493f /usr/local/bin/tox-bootstrapd
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user