Skip to content

Commit

Permalink
Call MakeMap() before looping through ServerMap to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemennah committed May 2, 2017
1 parent b810cbe commit de9b001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions state/processList.go
Expand Up @@ -324,6 +324,8 @@ func (p *ProcessList) GetVirtualServers(minute int, identityChainID interfaces.I
return false, -1
}

p.MakeMap()

for i := 0; i < len(p.FedServers); i++ {
fedix := p.ServerMap[minute][i]
if fedix == fedIndex {
Expand Down

0 comments on commit de9b001

Please sign in to comment.