Commit ffef00d9 authored by Steven Allen's avatar Steven Allen

feat(prq): don't try to cancel finished provider requests

parent 9394d3b6
......@@ -177,7 +177,9 @@ func (pqm *ProviderQueryManager) receiveProviders(sessionCtx context.Context, k
case <-pqm.ctx.Done():
return
case <-sessionCtx.Done():
pqm.cancelProviderRequest(k, incomingProviders)
if incomingProviders != nil {
pqm.cancelProviderRequest(k, incomingProviders)
}
return
case provider, ok := <-incomingProviders:
if !ok {
......
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