mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 16:51:52 +00:00
c4d9ed7b701ee2882ba49705bb5f80d4fd1b1fed
The update component had the same infinite loop issue as the OTA component when network read errors occurred. If container->read() returned an error (negative value), it would be added to read_index and the loop would continue indefinitely since get_bytes_read() would never reach content_length. This fix breaks out of the read loop on any read error (read_bytes <= 0), preventing watchdog resets and infinite loops during manifest downloads. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Description
Languages
C++
64.3%
Python
35.4%
C
0.2%
