Commit bf41b5d5 authored by David Vorick's avatar David Vorick Committed by GitHub

Merge pull request #2132 from NebulousLabs/download-deadlock

call ResolveID outside contractor RLock
parents ec9ab173 1241caee
......@@ -112,8 +112,8 @@ func (hd *hostDownloader) Close() error {
// Downloader returns a Downloader object that can be used to download sectors
// from a host.
func (c *Contractor) Downloader(id types.FileContractID, cancel <-chan struct{}) (_ Downloader, err error) {
id = c.ResolveID(id)
cachedDownloader, haveDownloader := c.downloaders[id]
height := c.blockHeight
contract, haveContract := c.contracts[id]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment