No more problems when protocols gets disabled during feeding.
This commit is contained in:
parent
dc6405d27e
commit
075898dea7
1 changed files with 2 additions and 0 deletions
|
@ -415,6 +415,8 @@ proto_feed_more(void *P)
|
||||||
struct proto *p = P;
|
struct proto *p = P;
|
||||||
|
|
||||||
DBG("Feeding protocol %s continued\n", p->name);
|
DBG("Feeding protocol %s continued\n", p->name);
|
||||||
|
if (p->core_state != FS_FEEDING)
|
||||||
|
return;
|
||||||
if (rt_feed_baby(p))
|
if (rt_feed_baby(p))
|
||||||
{
|
{
|
||||||
p->core_state = FS_HAPPY;
|
p->core_state = FS_HAPPY;
|
||||||
|
|
Loading…
Reference in a new issue