Compare commits

..
Author SHA1 Message Date
tarsin 63cd60b237 Release 1.8.6.0-alpha04
Releases / Build (push) Has been cancelled
2023-02-14 16:40:49 +08:00
tarsin 0df8e8522f Fix #791 2023-02-14 16:39:10 +08:00
2 changed files with 3 additions and 6 deletions

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ android {
minSdk = 28
targetSdk = 33
versionCode = 180031
versionName = "1.8.6.0-alpha03"
versionName = "1.8.6.0-alpha04"
resourceConfigurations.addAll(
listOf(
"zh",
@@ -309,11 +309,8 @@ class SpiderQueenWorker(private val queen: SpiderQueen) : CoroutineScope {
}
private suspend fun doInJob(index: Int) {
val src = spiderDen.getImageSource(index) ?: run {
delay(1000)
mFetcherJobMap[index]?.takeIf { it.isActive }?.join()
spiderDen.getImageSource(index)
} ?: return
mFetcherJobMap[index]?.takeIf { it.isActive }?.join()
val src = spiderDen.getImageSource(index) ?: return
val image = mSemaphore.withPermit { decode(src) }
runCatching {
currentCoroutineContext().ensureActive()