diff --git a/fetapdtest.py b/fetapdtest.py index 099d1b9..949de64 100644 --- a/fetapdtest.py +++ b/fetapdtest.py @@ -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):