1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node: do not emit data when paused

This commit is contained in:
Steffen Vogel 2018-11-23 20:58:54 +02:00
parent 437cfb646d
commit 1ac9d306ad

View file

@ -485,6 +485,9 @@ int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *rel
{
int readd, nread = 0;
if (n->state == STATE_PAUSED)
return 0;
assert(n->state == STATE_STARTED || n->state == STATE_CONNECTED || n->state == STATE_PENDING_CONNECT);
assert(node_type(n)->read);