src/plugin.c: Ensure that `wait_time' is at least `interval_g'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 9 Apr 2007 10:57:05 +0000 (12:57 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 9 Apr 2007 10:57:05 +0000 (12:57 +0200)
src/plugin.c

index c927522..3363650 100644 (file)
@@ -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);
                }