Skip to content

Commit

Permalink
Add comment on port filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 23, 2023
1 parent f6a130e commit ee1d292
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kia-lib/src/main/kotlin/com/faforever/ice/IceAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ class IceAdapter(
fun setIceServers(iceServers: List<CoturnServer>) {
synchronized(coturnServers) {
coturnServers.clear()
coturnServers.addAll(iceServers.filter {
it.port > 0
})
// On some occasions, there is no port extracted. Ignore these.
coturnServers.addAll(iceServers.filter { it.port > 0 })
}
}
}

0 comments on commit ee1d292

Please sign in to comment.