Fix obd goroutine leak (#10504)

The gouroutine collecting transfer stats never exits. Add missing channel close.
This commit is contained in:
Klaus Post
2020-09-17 10:10:20 -07:00
committed by GitHub
parent 48d2c03250
commit 03490c811b

View File

@@ -232,6 +232,7 @@ func (client *peerRESTClient) doNetOBDTest(ctx context.Context, dataSize int64,
}
}
wg.Wait()
close(transferChan)
if err != nil {
return info, err