Flush stdout just before finishing shutdown so the last messages are written to the log file.

This commit is contained in:
Charles Haley 2025-02-06 10:38:25 +00:00
parent 951a8e58e3
commit 528119bde4

View File

@ -1323,6 +1323,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
self.istores.join()
wait_for_cleanup()
wait_for_stop()
sys.stdout.flush() # Make sure any buffered prints are written for debug mode
self.shutdown_completed.emit()
return True