Improvements at cmd interface

This commit is contained in:
2019-07-08 14:27:53 +02:00
parent 25bb774a5d
commit 303f4b50f1
11 changed files with 229 additions and 104 deletions

View File

@ -6,11 +6,12 @@ class CommunicationProcessor(threading.Thread):
super().__init__()
self.config = config
self.queue = queue
self.daemon = True
def run(self):
while True:
r = self.queue.get()
# r.process()
r.process()
r.lastContact = datetime.datetime.now()
print("Dequeued: {0!s}".format(r))
r.enqueued = False