1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 20:32:21 +01:00
This commit is contained in:
J. Nick Koston
2025-08-10 18:03:56 -05:00
parent 2bdf335127
commit e48a223eac

View File

@@ -145,7 +145,7 @@ void ESPHomeOTAComponent::handle_handshake_() {
this->handle_data_();
} else if (read == -1) {
if (errno != EAGAIN && errno != EWOULDBLOCK) {
ESP_LOGW(TAG, "Error reading first byte, errno %d", errno);
this->log_socket_error_("reading first byte");
this->cleanup_connection_();
}
// For EAGAIN/EWOULDBLOCK, just return and try again next loop