talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit bfa14488c667993aa619ccb2dbc98e14e108ec9a
parent fb28d25c2fdf57527b06f0956923649efdda9c0b
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date:   Wed,  4 Aug 2021 05:45:23 -0700

Defer closing of Windows log

The Windows logfile was being closed too early and missing part of the
shutdown process.

Diffstat:
Msrc/main.c | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1469,9 +1469,6 @@ int main(int argc, char *argv[]) } if(!account_get_list()) { exit_claws(mainwin); -#ifdef G_OS_WIN32 - win32_close_log(); -#endif exit(1); } never_ran = TRUE; @@ -1620,9 +1617,6 @@ int main(int argc, char *argv[]) "external plugin. Please reinstall the " "plugin and try again.")); exit_claws(mainwin); -#ifdef G_OS_WIN32 - win32_close_log(); -#endif exit(1); } } @@ -1707,9 +1701,6 @@ int main(int argc, char *argv[]) if(connection) dbus_g_connection_unref(connection); #endif -#ifdef G_OS_WIN32 - win32_close_log(); -#endif utils_free_regex(); exit_claws(mainwin); @@ -1834,6 +1825,9 @@ static void exit_claws(MainWindow *mainwin) gtkaspell_checkers_quit(); #endif plugin_unload_all("Common"); +#ifdef G_OS_WIN32 + win32_close_log(); +#endif claws_done(); }