From 453e6c5da45d5e16376ddbc1564e9065d2897e55 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 9 Apr 2007 12:57:05 +0200 Subject: [PATCH] src/plugin.c: Ensure that `wait_time' is at least `interval_g'. --- src/plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index c927522a..33636507 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -186,6 +186,8 @@ static void *plugin_read_thread (void *args) if (status != 0) { + if (rf->wait_time < interval_g) + rf->wait_time = interval_g; rf->wait_left = rf->wait_time; rf->wait_time = rf->wait_time * 2; if (rf->wait_time > 86400) @@ -500,8 +502,9 @@ void plugin_init_all (void) { ERROR ("Initialization of plugin `%s' " "failed with status %i. " - "Plugin will be unloaded. TODO!", + "Plugin will be unloaded.", le->key, status); + /* FIXME: Unload _all_ functions */ plugin_unregister_read (le->key); } -- 2.11.0