mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Flush stdout just before finishing shutdown so the last messages are written to the log file.
This commit is contained in:
parent
951a8e58e3
commit
528119bde4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user