diff options
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r-- | src/up-daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c index ee4149c..aa89d7d 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -534,6 +534,10 @@ up_daemon_startup (UpDaemon *daemon, /* get battery state */ up_daemon_update_warning_level (daemon); + + /* Run mainloop now to avoid state changes on DBus */ + while (g_main_context_iteration (NULL, FALSE)) { } + g_debug ("daemon now not coldplug"); out: |