accounting: fix incorrect stats with --transfers=1 - fixes #8670
This commit is contained in:
@@ -391,6 +391,7 @@ func (s *StatsInfo) _stopAverageLoop() {
|
||||
if s.average.started {
|
||||
s.average.cancel()
|
||||
s.average.stopped.Wait()
|
||||
s.average.started = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user