mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
safer handling of calling account hooks, refined shutdown comment
This commit is contained in:
@@ -698,7 +698,8 @@ class Account(object):
|
||||
# mark the event thread for shutdown (latest on next incoming event)
|
||||
self._event_thread.mark_shutdown()
|
||||
|
||||
# stop_io also causes an info event that will terminate the event thread
|
||||
# stop_io also causes an info event which will wake up
|
||||
# the EventThread's inner loop and let it notice the shutdown marker.
|
||||
self.stop_io()
|
||||
|
||||
self.log("wait for event thread to finish")
|
||||
|
||||
Reference in New Issue
Block a user