les: priority client info bugfix

This commit is contained in:
Zsolt Felfoldi 2019-11-03 02:08:08 +01:00
parent 313e17bffc
commit 3ef504d185

View file

@ -97,9 +97,11 @@ func (api *PrivateLightServerAPI) PriorityClientInfo(start, stop enode.ID, maxCo
res[ids[maxCount]] = make(map[string]interface{})
ids = ids[:maxCount]
}
api.server.clientPool.forClients(ids, func(client *clientInfo, id enode.ID) {
res[id] = api.clientInfo(client, id)
})
if len(ids) != 0 {
api.server.clientPool.forClients(ids, func(client *clientInfo, id enode.ID) {
res[id] = api.clientInfo(client, id)
})
}
return res
}