mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
change to use readers
This commit is contained in:
@@ -267,7 +267,7 @@ func (t *Torrent) drop() {
|
||||
}
|
||||
|
||||
func (t *Torrent) Close() bool {
|
||||
if t.cache != nil && t.cache.Readers() > 0 {
|
||||
if t.cache != nil && t.cache.GetUseReaders() > 0 {
|
||||
return false
|
||||
}
|
||||
t.Stat = state.TorrentClosed
|
||||
|
||||
Reference in New Issue
Block a user