commit 9f0ce6e37285e19b200eb52cb704b573b54388c3
parent c218f5e59fb8828da838c792958e403e22a88aeb
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:
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -1453,9 +1453,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;
@@ -1604,9 +1601,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);
}
}
@@ -1694,9 +1688,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);
@@ -1821,6 +1812,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();
}