Code

plugin.c: Fix an endless loop.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 1 Apr 2007 17:13:30 +0000 (19:13 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 1 Apr 2007 17:13:30 +0000 (19:13 +0200)
src/plugin.c

index c6762dec7103402e2c31b903642ea112c8dde09b..7aef8737ebc52ae6f6b1ef5390e2a9ceed352f4b 100644 (file)
@@ -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;