fix close torrent on expired

This commit is contained in:
YouROK
2021-01-14 15:23:23 +03:00
parent 5e0c8854f6
commit 98c7982d25

View File

@@ -149,7 +149,7 @@ func (t *Torrent) watch() {
func (t *Torrent) progressEvent() { func (t *Torrent) progressEvent() {
if t.expired() { if t.expired() {
log.TLogln("Torrent close by timeout", t.Torrent.InfoHash().HexString()) log.TLogln("Torrent close by timeout", t.Torrent.InfoHash().HexString())
t.drop() t.bt.RemoveTorrent(t.Hash())
return return
} }