mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-03 05:04:53 -04:00
[db] Ensure that we never return an empty list of mirrors for Repository#getMirrors()
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
d3980be158
commit
50722f8270
@@ -177,7 +177,7 @@ public data class Repository internal constructor(
|
||||
public fun getMirrors(): List<org.fdroid.download.Mirror> {
|
||||
return getAllMirrors(true).filter {
|
||||
!disabledMirrors.contains(it.baseUrl)
|
||||
}
|
||||
}.ifEmpty { listOf(org.fdroid.download.Mirror(address)) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user