mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:24:19 -04:00
Fixes #904 When a poll fails (typically with 401 Unauthorized after ~2 hour token expiration), the code would re-authenticate but then return the original poll error without retrying. This caused a one-minute data gap every 2 hours. Changes: - After successful re-authentication, retry the poll operation - Add 500ms delay before retry to allow controller to process new auth - Rename error variable to avoid shadowing during re-auth attempt This ensures that transient authentication failures during the re-auth window don't cause data gaps. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>