set torrent name if empty title

This commit is contained in:
YouROK
2021-06-17 11:16:30 +03:00
parent c31c318321
commit 0be72ac2ba

View File

@@ -193,12 +193,10 @@ func (c *Cache) cleanPieces() {
for _, p := range remPieces { for _, p := range remPieces {
c.removePiece(p) c.removePiece(p)
rems-- rems--
if rems <= 0 {
break
}
}
if rems <= 0 { if rems <= 0 {
utils.FreeOSMemGC() utils.FreeOSMemGC()
return
}
} }
} }
} }