mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +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() {
|
||||
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())
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user