]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
No more problems when protocols gets disabled during feeding.
authorMartin Mares <mj@ucw.cz>
Fri, 19 May 2000 18:03:53 +0000 (18:03 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 19 May 2000 18:03:53 +0000 (18:03 +0000)
nest/proto.c

index 76467aa56acb4c9c2643b353ce8bdda3925aa15e..5381f0d8b3e2a0dd508c56a5c3437c15df85b423 100644 (file)
@@ -415,6 +415,8 @@ proto_feed_more(void *P)
   struct proto *p = P;
 
   DBG("Feeding protocol %s continued\n", p->name);
+  if (p->core_state != FS_FEEDING)
+    return;
   if (rt_feed_baby(p))
     {
       p->core_state = FS_HAPPY;