diff options
Diffstat (limited to 'les')
-rw-r--r-- | les/fetcher.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/les/fetcher.go b/les/fetcher.go index 3fc4df30b..9d224176f 100644 --- a/les/fetcher.go +++ b/les/fetcher.go @@ -425,6 +425,9 @@ func (f *lightFetcher) nextRequest() (*distReq, uint64) { }, canSend: func(dp distPeer) bool { p := dp.(*peer) + f.lock.Lock() + defer f.lock.Unlock() + fp := f.peers[p] return fp != nil && fp.nodeByHash[bestHash] != nil }, |