mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
les: fix removed condition
This commit is contained in:
parent
b005cd5610
commit
19b3839580
1 changed files with 3 additions and 1 deletions
|
|
@ -321,7 +321,9 @@ func (pm *ProtocolManager) handle(p *peer) error {
|
|||
p.lock.Lock()
|
||||
head := p.headInfo
|
||||
p.lock.Unlock()
|
||||
pm.fetcher.announce(p, head)
|
||||
if pm.fetcher != nil {
|
||||
pm.fetcher.announce(p, head)
|
||||
}
|
||||
|
||||
if p.poolEntry != nil {
|
||||
pm.serverPool.registered(p.poolEntry)
|
||||
|
|
|
|||
Loading…
Reference in a new issue