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