update reader and wait timeout

This commit is contained in:
nikk gitanes
2021-08-22 10:56:51 +03:00
parent a0dffeb258
commit 7da9270241
3 changed files with 5 additions and 5 deletions

View File

@@ -100,8 +100,8 @@ func (t *Torrent) WaitInfo() bool {
return false
}
// Close torrent if not info while 10 minutes
tm := time.NewTimer(time.Minute * 10)
// Close torrent if not info while 5 minutes
tm := time.NewTimer(time.Minute * 5)
select {
case <-t.Torrent.GotInfo():