This commit is contained in:
Mygod
2020-01-20 19:08:48 +08:00
parent cce3223311
commit 22d81bb0b4
3 changed files with 3 additions and 3 deletions

View File

@@ -227,7 +227,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
transaction.revert()
}
}
private val clients = HashMap<InetAddress, Client>()
private val clients = mutableMapOf<InetAddress, Client>()
override fun onIpNeighbourAvailable(neighbours: Collection<IpNeighbour>) = synchronized(this) {
val toRemove = HashSet(clients.keys)
for (neighbour in neighbours) {