Wait for extensions to load before the list is propagated (#3841)

This commit is contained in:
AntsyLich
2026-08-23 02:37:01 +06:00
committed by GitHub
parent 46c8f07c12
commit 270b78ba95
5 changed files with 37 additions and 33 deletions
@@ -15,7 +15,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
@@ -48,8 +47,6 @@ class AndroidSourceManager(
init {
scope.launch {
extensionManager.isInitialized.first { it }
extensionManager.installedExtensionsFlow
.collectLatest { extensions ->
val mutableMap = ConcurrentHashMap<Long, Source>(