mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 22:46:29 +03:00
fix last failing test -- make account.shutdown() robust against getting called from event thread
This commit is contained in:
@@ -147,6 +147,10 @@ class EventThread(threading.Thread):
|
||||
self._thread_quitflag = True
|
||||
|
||||
if wait:
|
||||
if self == threading.current_thread():
|
||||
# we are in the callback thread and thus cannot
|
||||
# wait for the thread-loop to finish.
|
||||
return
|
||||
self.join()
|
||||
|
||||
def run(self):
|
||||
|
||||
Reference in New Issue
Block a user