mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
improve debugging
This commit is contained in:
@@ -151,12 +151,12 @@ class EventThread(threading.Thread):
|
||||
def mark_shutdown(self):
|
||||
self._marked_for_shutdown = True
|
||||
|
||||
def wait(self):
|
||||
def wait(self, timeout=None):
|
||||
if self == threading.current_thread():
|
||||
# we are in the callback thread and thus cannot
|
||||
# wait for the thread-loop to finish.
|
||||
return
|
||||
self.join()
|
||||
self.join(timeout=timeout)
|
||||
|
||||
def run(self):
|
||||
""" get and run events until shutdown. """
|
||||
|
||||
Reference in New Issue
Block a user