Skip to content

Keep refresh loop alive after exceptions - #34

Open
rutuja2005byte wants to merge 1 commit into
stacktale:mainfrom
rutuja2005byte:fix-refresh-loop-exception
Open

rutuja2005byte wants to merge 1 commit into
stacktale:mainfrom
rutuja2005byte:fix-refresh-loop-exception

Conversation

@rutuja2005byte

Copy link
Copy Markdown

Closes #6

The polling loop previously stopped permanently if refresh(false)
threw an exception.

This change:

  • rethrows ProcessCanceledException
  • logs unexpected refresh failures
  • schedules the next poll from finally
  • keeps the polling loop alive after a failed refresh

Verification:

  • ./gradlew build
  • BUILD SUCCESSFUL
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The refresh loop dies on the first exception

1 participant