Made timeout nicer
This commit is contained in:
parent
762d3b4775
commit
b6f5efd6ab
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue