mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05:00
Merge pull request #680 from Stevie-O/slow-startup-with-glib-2.49.3
Fix slow startup with glib 2.49.3 (cherry picked from commit 3d4ba86a91b4f246665259c1e2100f5768e89237)
This commit is contained in:
parent
7b4106fe0c
commit
7fc08ba0e5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user