1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #680 from Stevie-O/slow-startup-with-glib-2.49.3

Fix slow startup with glib 2.49.3
This commit is contained in:
ailin-nemui 2017-03-21 15:47:16 +01:00 committed by GitHub
commit 3d4ba86a91

View File

@ -317,22 +317,22 @@ int main(int argc, char **argv)
/* Does the same as g_main_run(main_loop), except we
can call our dirty-checker after each iteration */
while (!quitting) {
term_refresh_freeze();
g_main_iteration(TRUE);
term_refresh_thaw();
if (reload_config) {
/* SIGHUP received, do /RELOAD */
/* SIGHUP received, do /RELOAD */
reload_config = FALSE;
signal_emit("command reload", 1, "");
signal_emit("command reload", 1, "");
}
dirty_check();
term_refresh_freeze();
g_main_iteration(TRUE);
term_refresh_thaw();
}
g_main_destroy(main_loop);
textui_deinit();
session_upgrade(); /* if we /UPGRADEd, start the new process */
session_upgrade(); /* if we /UPGRADEd, start the new process */
return 0;
}