scan in tasks queue

This commit is contained in:
j 2014-05-28 17:36:26 +02:00
commit 0704e315ba
4 changed files with 5 additions and 6 deletions

View file

@ -20,6 +20,7 @@ class Tasks(Thread):
Thread.__init__(self)
self.daemon = True
self.start()
self.queue('scan')
def run(self):
import item.scan
@ -46,6 +47,6 @@ class Tasks(Thread):
self.q.join()
return Thread.join(self)
def queue(self, action, data):
def queue(self, action, data=None):
self.q.put((action, data))