Recycle forced download tasks when finished.

Using "Start download now" creates a forced task that wasn't recycled
when it finished. This prevented it from being deleted because
can_delete() returns False for tasks in the DONE state.
This commit is contained in:
auouymous 2022-05-13 20:27:21 -06:00
parent 5eeda318f4
commit 3e827c771b
1 changed files with 1 additions and 0 deletions

View File

@ -406,6 +406,7 @@ class ForceDownloadWorker(object):
logger.info('Starting new thread: %s', self)
logger.info('%s is processing: %s', self, self.task)
self.task.run()
self.task.recycle()
class DownloadQueueManager(object):