good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit dfc5842a authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

les: add missing lock around peer access

parent ff225db8
No related branches found
No related tags found
No related merge requests found
......@@ -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
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment