mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix crash if torrent not get info
This commit is contained in:
@@ -147,7 +147,9 @@ 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())
|
if t.TorrentSpec != nil {
|
||||||
|
log.TLogln("Torrent close by timeout", t.TorrentSpec.InfoHash.HexString())
|
||||||
|
}
|
||||||
t.bt.RemoveTorrent(t.Hash())
|
t.bt.RemoveTorrent(t.Hash())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user