From: Florian Forster Date: Sun, 1 Apr 2007 17:13:30 +0000 (+0200) Subject: plugin.c: Fix an endless loop. X-Git-Tag: collectd-4.0.0-rc4~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69106ccf4f82928b886984fd7e7649c0d2964be7;p=collectd.git plugin.c: Fix an endless loop. --- diff --git a/src/plugin.c b/src/plugin.c index c6762dec..7aef8737 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -526,7 +526,10 @@ void plugin_read_all (const int *loop) rf = (read_func_t *) le->value; if (rf->needs_read != DONE) + { + le = le->next; continue; + } if (rf->wait_left > 0) rf->wait_left -= interval_g;