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:
commit
3d4ba86a91
@ -317,10 +317,6 @@ int main(int argc, char **argv)
|
|||||||
/* Does the same as g_main_run(main_loop), except we
|
/* Does the same as g_main_run(main_loop), except we
|
||||||
can call our dirty-checker after each iteration */
|
can call our dirty-checker after each iteration */
|
||||||
while (!quitting) {
|
while (!quitting) {
|
||||||
term_refresh_freeze();
|
|
||||||
g_main_iteration(TRUE);
|
|
||||||
term_refresh_thaw();
|
|
||||||
|
|
||||||
if (reload_config) {
|
if (reload_config) {
|
||||||
/* SIGHUP received, do /RELOAD */
|
/* SIGHUP received, do /RELOAD */
|
||||||
reload_config = FALSE;
|
reload_config = FALSE;
|
||||||
@ -328,6 +324,10 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dirty_check();
|
dirty_check();
|
||||||
|
|
||||||
|
term_refresh_freeze();
|
||||||
|
g_main_iteration(TRUE);
|
||||||
|
term_refresh_thaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
g_main_destroy(main_loop);
|
g_main_destroy(main_loop);
|
||||||
|
Loading…
Reference in New Issue
Block a user