Fix rewrites
This commit is contained in:
@@ -37,8 +37,7 @@ func HandleDeleteFile(directory, torrentName, fileName string, torMgr *torrent.T
|
||||
if dirCfg.OnlyShowTheBiggestFile {
|
||||
torMgr.Delete(torrentName, true)
|
||||
} else {
|
||||
err := file.State.Event(context.Background(), "delete_file")
|
||||
if err != nil {
|
||||
if err := file.State.Event(context.Background(), "delete_file"); err != nil {
|
||||
return fmt.Errorf("cannot delete file %s: %v", fileName, err)
|
||||
}
|
||||
if torMgr.CheckDeletedStatus(torrent) {
|
||||
|
||||
Reference in New Issue
Block a user