aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-17 02:04:17 +0000
committerTarmac <Unknown>2013-10-17 02:04:17 +0000
commitccf83adc58fc38a5b7134f07cbd0bca1545b1f32 (patch)
tree2d2dd88ed5f5aac7da5f92722b145d82349fc73c
parenta52033edfb3cdcd63e4e98bb721eca94e6cc5dad (diff)
parent0a9a95f248568da85eb2e395d849017d4fdca037 (diff)
downloadlibayatana-indicator-ccf83adc58fc38a5b7134f07cbd0bca1545b1f32.tar.gz
libayatana-indicator-ccf83adc58fc38a5b7134f07cbd0bca1545b1f32.tar.bz2
libayatana-indicator-ccf83adc58fc38a5b7134f07cbd0bca1545b1f32.zip
Warn when an indicator doesn't get respawned anymore.
Approved by Charles Kerr, PS Jenkins bot.
-rw-r--r--libindicator/indicator-ng.c6
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;