]> Sergey Matveev's repositories - btrtrc.git/commitdiff
cmd/torrent-pick | add missing ticker.Stop() call
authorucwong <ucwong@126.com>
Fri, 3 Apr 2020 03:06:01 +0000 (03:06 +0000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 3 Apr 2020 07:02:16 +0000 (17:02 +1000)
cmd/torrent-pick/main.go

index 4c01baee457f16499a88b8f95bd23292e68fb9fe..70f82f7cea73fa86239e0448fdf52b1f589c027f 100644 (file)
@@ -174,6 +174,7 @@ func main() {
        }
 
        ticker := time.NewTicker(time.Second)
+       defer ticker.Stop()
 waitDone:
        for {
                select {