summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-19 20:03:53 +0200
committerMartin Mares <mj@ucw.cz>2000-05-19 20:03:53 +0200
commit075898dea7ee73b49462af3d3ab0269fd46afcc4 (patch)
treefe91fb888fe347f09ceed2a036423841f2e67515 /nest
parentdc6405d27e1ecedf6289039c7b3ed94c50683b2d (diff)
downloadbird-075898dea7ee73b49462af3d3ab0269fd46afcc4.tar
bird-075898dea7ee73b49462af3d3ab0269fd46afcc4.zip
No more problems when protocols gets disabled during feeding.
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 76467aa..5381f0d 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -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;