Skip to content

Commit 46bf381

Browse files
committed
Try emit initial state for Multi provider
1 parent 9d27949 commit 46bf381

File tree

1 file changed

+1
-1
lines changed
  • kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider

1 file changed

+1
-1
lines changed

kotlin-sdk/src/commonMain/kotlin/dev/openfeature/kotlin/sdk/multiprovider/MultiProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MultiProvider(
4646
// Shared flow because we don't want the distinct operator since it would break consecutive emits of
4747
// ProviderConfigurationChanged
4848
private val eventFlow = MutableSharedFlow<OpenFeatureProviderEvents>(replay = 1, extraBufferCapacity = 5).apply {
49-
OpenFeatureProviderEvents.ProviderError(OpenFeatureError.ProviderNotReadyError())
49+
tryEmit(OpenFeatureProviderEvents.ProviderError(OpenFeatureError.ProviderNotReadyError()))
5050
}
5151

5252
// Track individual provider statuses

0 commit comments

Comments
 (0)