101 self.setRecursionDepth(inspect.currentframe()) |
101 self.setRecursionDepth(inspect.currentframe()) |
102 |
102 |
103 # background task to periodicaly check for client interactions |
103 # background task to periodicaly check for client interactions |
104 self.eventPollFlag = False |
104 self.eventPollFlag = False |
105 self.timer = _thread.start_new_thread(self.__eventPollTimer, ()) |
105 self.timer = _thread.start_new_thread(self.__eventPollTimer, ()) |
|
106 |
|
107 # provide a hook to perform a hard breakpoint |
|
108 # Use it like this: |
|
109 # if hasattr(sys, 'breakpoint): sys.breakpoint() |
|
110 sys.breakpoint = self.set_trace |
106 |
111 |
107 def __eventPollTimer(self): |
112 def __eventPollTimer(self): |
108 """ |
113 """ |
109 Private method to set a flag every 0.5 s to check for new messages. |
114 Private method to set a flag every 0.5 s to check for new messages. |
110 """ |
115 """ |