diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-10-16 19:16:08 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-10-16 19:16:08 -0400 |
commit | 0a9a95f248568da85eb2e395d849017d4fdca037 (patch) | |
tree | 2d2dd88ed5f5aac7da5f92722b145d82349fc73c | |
parent | a52033edfb3cdcd63e4e98bb721eca94e6cc5dad (diff) | |
download | libayatana-indicator-0a9a95f248568da85eb2e395d849017d4fdca037.tar.gz libayatana-indicator-0a9a95f248568da85eb2e395d849017d4fdca037.tar.bz2 libayatana-indicator-0a9a95f248568da85eb2e395d849017d4fdca037.zip |
Warn when an indicator doesn't get respawned anymore
-rw-r--r-- | libindicator/indicator-ng.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index 8d3304b..f2ffa6d 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -498,7 +498,11 @@ indicator_ng_service_vanished (GDBusConnection *connection, /* take care not to start it if it repeatedly crashes */ now = g_get_monotonic_time (); if (now - self->last_service_restart < 1 * G_USEC_PER_SEC) - return; + { + g_warning ("The indicator '%s' vanished too quickly after appearing. It won't " + "be respawned anymore, as it could be crashing repeatedly.", self->name); + return; + } self->last_service_restart = now; |