Skip to content

[firebase_remote_config] RemoteConfig.instance Future already completed #120

Closed
@IchordeDionysos

Description

@IchordeDionysos

Describe the bug
When calling RemoteConfig.instance twice both of these calls go into the if-statement and try to retrieve the instance.

Then in here both calls to get RemoteConfig.instance try to complete with the instance, but the second one fails as the first one already completed the Completer.

To Reproduce
Steps to reproduce the behavior:

  1. Install and configure Remote Config
  2. Get RemoteConfig.instance twice in parallel
  3. See that the second call will fail with Bad state: Future already completed

Expected behavior
Both calles to RemoteConfig.instance complete without an error

Additional context

I'll put together an MVCE

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: remote_configtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions