summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/proto.c')
-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;