Implement new fsm
This commit is contained in:
@@ -6,7 +6,7 @@ import cmap "github.com/orcaman/concurrent-map/v2"
|
||||
func (t *TorrentManager) CheckDeletedStatus(torrent *Torrent) bool {
|
||||
var deletedIDs []int
|
||||
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
||||
if file.IsDeleted {
|
||||
if file.State.Is("deleted") {
|
||||
deletedIDs = append(deletedIDs, file.ID)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user