problem: shouldn't setup new chains not described by upstream

This commit is contained in:
Igor Artamonov
2019-07-26 23:10:46 -04:00
parent 64e0ac58fd
commit 124def0530

View File

@@ -46,7 +46,7 @@ class GrpcUpstreams(
.subscribe { value ->
val chain = Chain.byId(value.chain.number)
if (chain != Chain.UNSPECIFIED) {
getOrCreate(chain).onStatus(value)
known[chain]?.onStatus(value)
}
}
return loaded