mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 16:12:24 +01:00
stack it
This commit is contained in:
@@ -510,11 +510,7 @@ bool ESPHomeOTAComponent::try_read_(size_t to_read, const LogString *error_desc,
|
|||||||
|
|
||||||
if (read <= 0) {
|
if (read <= 0) {
|
||||||
// Error or connection closed
|
// Error or connection closed
|
||||||
if (read == -1) {
|
read == -1 ? this->log_socket_error_(error_desc) : this->log_remote_closed_(close_desc);
|
||||||
this->log_socket_error_(error_desc);
|
|
||||||
} else {
|
|
||||||
this->log_remote_closed_(close_desc);
|
|
||||||
}
|
|
||||||
this->cleanup_connection_();
|
this->cleanup_connection_();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user