mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-03 09:22:49 +00:00
network: avoid looping forever
blockFetcherFin is closed by the block fetcher, so it will forever return something in this loop making it an infinite loop, creating useless load and affecting normal node operation. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
9a3923097b
commit
c812150d83
1 changed files with 1 additions and 0 deletions
|
@ -575,6 +575,7 @@ func (s *Server) run() {
|
|||
s.tryInitStateSync()
|
||||
s.tryStartServices()
|
||||
}
|
||||
s.blockFetcherFin = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue