Commit 2e76860d authored by Steven Allen's avatar Steven Allen

fix: wait until we finish connecting before we cancel the context

This is an interesting bug because changes to the DHT have suddenly started
triggering it. I'm not sure _why_ we weren't hitting it before now.

We may have been ignoring a context somewhere?
parent 42044634
......@@ -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