Browse Source

Made timeout nicer

pull/1/head
klonfish 10 years ago
parent
commit
b6f5efd6ab
  1. 2
      fetapdtest.py

2
fetapdtest.py

@ -226,7 +226,7 @@ class StateMachineController(object):
self.__evqueue.put((evname, evargs, evkwargs)) self.__evqueue.put((evname, evargs, evkwargs))
def set_timeout(self, timeout): 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() self.__timeout.start()
def abort_timeout(self): def abort_timeout(self):

Loading…
Cancel
Save