make new pieces prior managment

This commit is contained in:
YouROK
2020-12-18 12:11:32 +03:00
parent 13a94f0933
commit b8d071294b
5 changed files with 78 additions and 41 deletions

View File

@@ -96,6 +96,7 @@ func (t *Torrent) WaitInfo() bool {
select {
case <-t.Torrent.GotInfo():
t.cache = t.bt.storage.GetCache(t.Hash())
t.cache.SetTorrent(t.Torrent)
return true
case <-t.closed:
return false