diff --git a/oml/downloads.py b/oml/downloads.py index d01c17b..542beee 100644 --- a/oml/downloads.py +++ b/oml/downloads.py @@ -47,6 +47,10 @@ class Downloads(Thread): return False if itemid not in self.transfers: continue + f = item.models.File.get(itemid) + if f: + del self.transfers[itemid] + continue if t.get('added') and t.get('progress', -1) < 1: if not 'users' in t: i = item.models.Item.get(itemid)