Skip to content

fix: Cancel onPreparedSubscription on error#1660

Merged
Gustl22 merged 1 commit into
mainfrom
gustl22/1642-future-complete
Oct 2, 2023
Merged

fix: Cancel onPreparedSubscription on error#1660
Gustl22 merged 1 commit into
mainfrom
gustl22/1642-future-complete

Conversation

@Gustl22

@Gustl22 Gustl22 commented Oct 1, 2023

Copy link
Copy Markdown
Collaborator

Description

If an error occurred during setting the source, the onPreparedSubscription was still listened to, although it is not needed anymore. This triggered a Future already completed error.

Related Issues

Fixes #1642

@Gustl22 Gustl22 merged commit c11dbf3 into main Oct 2, 2023
@Gustl22 Gustl22 deleted the gustl22/1642-future-complete branch October 2, 2023 11:29
Gustl22 added a commit that referenced this pull request Oct 2, 2023
# Description

If an error occurred during setting the source, the
`onPreparedSubscription` was still listened to, although it is not
needed anymore. This triggered a `Future already completed` error.

## Related Issues

Fixes #1642

(cherry picked from commit c11dbf3)
Gustl22 added a commit that referenced this pull request Nov 14, 2023
# Description

If an error occurred during setting the source, the
`onPreparedSubscription` was still listened to, although it is not
needed anymore. This triggered a `Future already completed` error.

## Related Issues

Fixes #1642
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.

"Non-fatal Exception Bad state: Future already completed" - multiple reports in Crashlytics

2 participants