From: ucwong Date: Fri, 3 Apr 2020 03:06:01 +0000 (+0000) Subject: cmd/torrent-pick | add missing ticker.Stop() call X-Git-Tag: v1.16.0~92 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c435d713c4c4308fffe14a6104b8affcf6aff36c;p=btrtrc.git cmd/torrent-pick | add missing ticker.Stop() call --- diff --git a/cmd/torrent-pick/main.go b/cmd/torrent-pick/main.go index 4c01baee..70f82f7c 100644 --- a/cmd/torrent-pick/main.go +++ b/cmd/torrent-pick/main.go @@ -174,6 +174,7 @@ func main() { } ticker := time.NewTicker(time.Second) + defer ticker.Stop() waitDone: for { select {