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 c6762de..7aef873 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;