Skip to content

Unable to close client when using ldd #234

@aaricpittman

Description

@aaricpittman

Description

If you configure the client to use_ldd then you are unable to close the client. Calling client.close results in a NoMethodError for @data_source as it does not get defined when using ldd.

undefined method `stop' for nil:NilClass (NoMethodError)

It may be that closing the client is not necessary when using ldd, but I did not see anything in the docs that indicated that.

Example

config = LaunchDarkly::Config.new(
  feature_store:  LaunchDarkly::Integrations::Redis.new_feature_store(...),
  use_ldd: true
)
client = LaunchDarkly::Client.new(sdk_key, config)
client.close

Expected behavior
An exception is not thrown when calling client.close.

SDK version
7.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions