cmd/torrent/main.go | 8 ++++++-- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 61fd2ab2791cafc5ec80d2f5249181b02fe82f5e..a11373f7bb5326a041686b2a223d6bd439a9d0e3 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -355,8 +355,12 @@ } else { return xerrors.New("y u no complete torrents?!") } if flags.Seed { - outputStats(client) - <-stop.C() + if len(client.Torrents()) == 0 { + log.Print("no torrents to seed") + } else { + outputStats(client) + <-stop.C() + } } return nil }