Allow detection of waiting_file_selection

This commit is contained in:
Ben Sarmiento
2023-12-09 00:50:42 +01:00
parent 4dcd2e64bb
commit 2281b58b59
9 changed files with 115 additions and 87 deletions

View File

@@ -32,7 +32,7 @@ func HandleDeleteFile(directory, torrentName, fileName string, torMgr *torrent.T
return fmt.Errorf("cannot find file %s", fileName)
}
file.Link = "unselect"
if torMgr.CheckDeletedState(torrent) {
if torMgr.CheckDeletedStatus(torrent) {
torMgr.Delete(torrentName, true)
}
return nil