Pick random server number on simple selection

This commit is contained in:
Davide De Rosa 2019-04-11 21:09:08 +02:00
parent 7a4ec7364f
commit d264c0089d
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
let model = models[indexPath.section]
let group = model.sortedGroups[indexPath.row]
let groupPools = model.poolsByGroup[group]!
guard let pool = groupPools.first else {
guard let pool = groupPools.randomElement() else {
fatalError("Empty pools in group \(group)")
}
currentPool = pool