Unverified Commit 95b0d819 authored by dirkmc's avatar dirkmc Committed by GitHub

Merge pull request #226 from ipfs/fix/provider-connect

fix: wait until we finish connecting before we cancel the context
parents dcbe1f29 2e76860d
This diff is collapsed.
......@@ -252,8 +252,8 @@ func (pqm *ProviderQueryManager) findProviderWorker() {
}
}(p)
}
cancel()
wg.Wait()
cancel()
select {
case pqm.providerQueryMessages <- &finishedProviderQueryMessage{
k: k,
......
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