Made timeout nicer

This commit is contained in:
klonfish 2015-05-18 21:50:51 +02:00
parent 762d3b4775
commit b6f5efd6ab

View file

@ -226,7 +226,7 @@ class StateMachineController(object):
self.__evqueue.put((evname, evargs, evkwargs))
def set_timeout(self, timeout):
self.__timeout = threading.Timer(timeout/1000, lambda: self.queue_event('timeout'))
self.__timeout = threading.Timer(timeout/1000, self.queue_event, args=['timeout'])
self.__timeout.start()
def abort_timeout(self):