mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
f04520a6e3
Whenever transfer.Account() is called, a new goroutine acc.averageLoop() is started. This goroutine exits only when the channel acc.exit is closed. acc.exit is closed when acc.Done() is called, which happens during tr.Done(). However, if tr.Reset is called during a copy low level retry, it replaces the tr.acc, without calling acc.Done(), which results in the goroutine mentioned above never exiting. This commit calls acc.Done() during a tr.Reset() |
||
---|---|---|
.. | ||
accounting_other.go | ||
accounting_test.go | ||
accounting_unix.go | ||
accounting.go | ||
inprogress.go | ||
prometheus.go | ||
stats_groups_test.go | ||
stats_groups.go | ||
stats_test.go | ||
stats.go | ||
token_bucket_test.go | ||
token_bucket.go | ||
tpslimit_test.go | ||
tpslimit.go | ||
transfer.go | ||
transfermap.go |