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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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