1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 16:12:24 +01:00
This commit is contained in:
J. Nick Koston
2025-09-26 23:42:58 -05:00
parent 2d6669068f
commit 5fb99e9013

View File

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