From 075898dea7ee73b49462af3d3ab0269fd46afcc4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 19 May 2000 18:03:53 +0000 Subject: No more problems when protocols gets disabled during feeding. --- nest/proto.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/proto.c') 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; -- cgit v1.2.3