Use a queue to treat incoming messages instead of using server thread to answer

This commit is contained in:
Némunaire 2012-08-23 18:20:45 +02:00
commit fce491552b
5 changed files with 77 additions and 17 deletions

View file

@ -13,10 +13,10 @@ def load(context):
global DATAS
DATAS.setIndex("name", "station")
evt = ModuleEvent(station_available, "42706",
(lambda a, b: a != b), None, 60,
station_status)
context.add_event(evt)
# evt = ModuleEvent(station_available, "42706",
# (lambda a, b: a != b), None, 60,
# station_status)
# context.add_event(evt)
def help_tiny ():
"""Line inserted in the response to the command !help"""