This commit is contained in:
YouROK
2020-11-25 16:59:54 +03:00
parent cb74792d4d
commit 550e279110
2 changed files with 13 additions and 8 deletions

View File

@@ -62,13 +62,12 @@ func GetTorrent(hashHex string) *Torrent {
tor = GetTorrentDB(hash)
tr, err := NewTorrent(tor.TorrentSpec, bts)
if err != nil {
log.TLogln("error get torrent db:", err)
}
if tr != nil {
go tr.GotInfo()
}
go func() {
tr, _ := NewTorrent(tor.TorrentSpec, bts)
if tr != nil {
tr.GotInfo()
}
}()
return tor
}