diff --git a/server/go.mod b/server/go.mod index e880da5..f244bce 100644 --- a/server/go.mod +++ b/server/go.mod @@ -2,7 +2,7 @@ module server go 1.17 -replace github.com/anacrolix/torrent v1.30.3 => github.com/tsynik/torrent v1.2.7-0.20210821095616-85838c0c0326 +replace github.com/anacrolix/torrent v1.30.3 => github.com/tsynik/torrent v1.2.7-0.20210822073550-ce6a587148fe exclude github.com/willf/bitset v1.2.0 diff --git a/server/go.sum b/server/go.sum index 7ee5009..9ae04b5 100644 --- a/server/go.sum +++ b/server/go.sum @@ -656,8 +656,8 @@ github.com/tinylib/msgp v1.1.1/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDW github.com/tinylib/msgp v1.1.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tsynik/torrent v1.2.7-0.20210821095616-85838c0c0326 h1:hF9Xtv58WoBJ9Sls0lO/s6/Y41VXpLOQJ7UX2AiApgk= -github.com/tsynik/torrent v1.2.7-0.20210821095616-85838c0c0326/go.mod h1:6qxhn+CsyQ9b35j3ETXGDMLh4z2vTTutGx3ZnllNcCo= +github.com/tsynik/torrent v1.2.7-0.20210822073550-ce6a587148fe h1:sTueflLuNKGBsoLz0RFAqaDb9BMxceIXY8Su5jVht8M= +github.com/tsynik/torrent v1.2.7-0.20210822073550-ce6a587148fe/go.mod h1:6qxhn+CsyQ9b35j3ETXGDMLh4z2vTTutGx3ZnllNcCo= github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= diff --git a/server/torr/torrent.go b/server/torr/torrent.go index b7167db..535eaa1 100644 --- a/server/torr/torrent.go +++ b/server/torr/torrent.go @@ -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():