les: fixed light fetcher request ID matching

This commit is contained in:
Zsolt Felfoldi
2016-11-29 23:55:35 +01:00
parent a6d3bf6fc3
commit e67500aa15
2 changed files with 11 additions and 5 deletions

View File

@ -559,7 +559,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
}
p.fcServer.GotReply(resp.ReqID, resp.BV)
if pm.fetcher.requestedID(resp.ReqID) {
pm.fetcher.deliverHeaders(resp.ReqID, resp.Headers)
pm.fetcher.deliverHeaders(p, resp.ReqID, resp.Headers)
} else {
err := pm.downloader.DeliverHeaders(p.id, resp.Headers)
if err != nil {