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:
parent
437cfb646d
commit
1ac9d306ad
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue