This commit is contained in:
Simon Ding
2024-07-12 16:28:46 +08:00
parent 7597e6a147
commit 5ddac22d10
4 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ func (s *Server) RemoveActivity(c *gin.Context) (interface{}, error) {
}
torrent := s.tasks[his.ID]
if torrent != nil {
if err := torrent.Remove(true); err != nil {
if err := torrent.Remove(); err != nil {
return nil, errors.Wrap(err, "remove torrent")
}
delete(s.tasks, his.ID)