"github.com/dustin/go-humanize"
)
-func overallStatus(c *torrent.Client, cancel chan struct{}) {
+func overallStatus(c *torrent.Client) {
tick := time.Tick(time.Second)
var prev torrent.ConnStats
for {
select {
- case <-cancel:
- close(cancel)
+ case <-Cancel:
+ Jobs.Done()
return
case <-tick:
}