1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 08:02:23 +01:00
This commit is contained in:
J. Nick Koston
2025-09-26 23:44:24 -05:00
parent 5fb99e9013
commit 7e8de7c92c

View File

@@ -509,8 +509,7 @@ bool ESPHomeOTAComponent::try_read_(size_t to_read, const LogString *error_desc,
}
if (read <= 0) {
// Error or connection closed
read == -1 ? this->log_socket_error_(error_desc) : this->log_remote_closed_(close_desc);
read == 0 ? this->log_remote_closed_(close_desc) : this->log_socket_error_(error_desc);
this->cleanup_connection_();
return false;
}