check tasks

This commit is contained in:
j 2016-02-12 22:33:39 +05:30
parent f68f5f5669
commit 518bb9a361

View file

@ -245,6 +245,7 @@ class Peer(object):
state.db.session.commit() state.db.session.commit()
if state.shutdown: if state.shutdown:
return return
if state.tasks:
for itemid in getpreview: for itemid in getpreview:
state.tasks.queue('getpreview', itemid) state.tasks.queue('getpreview', itemid)
update_items = remove + add update_items = remove + add