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:
parent
5eeda318f4
commit
3e827c771b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue