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:
Roman Khimov 2024-12-06 11:34:07 +03:00
parent 9a3923097b
commit c812150d83

View file

@ -575,6 +575,7 @@ func (s *Server) run() {
s.tryInitStateSync()
s.tryStartServices()
}
s.blockFetcherFin = nil
}
}
}