Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StageGuard committed Feb 19, 2025
1 parent a83b976 commit e43cdbc
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.firstOrNull
import kotlinx.coroutines.flow.flatMapConcat
Expand Down Expand Up @@ -113,16 +114,12 @@ class AniAuthConfigurator(
}
.collectLatest { authStateNew -> emit(authStateNew) }
}
.shareIn(
scope,
SharingStarted.WhileSubscribed(),
)
.distinctUntilChanged()
.shareIn(scope, SharingStarted.WhileSubscribed(), replay = 1)

/**
* 启动授权请求检查循环.
*
*
*
*
* 会启动两个协程:
* * [checkAuthorizeRequestLoop] 用于检查授权请求状态.
* * [requireAuthorizeStarterTaskLoop] 用于启动 [SessionManager.requireAuthorize].
Expand Down

0 comments on commit e43cdbc

Please sign in to comment.