mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Added STATE_CONNECTED as valid state for node_read() & node_write()
This commit is contained in:
parent
bf8a86ff7d
commit
84f85e137d
1 changed files with 2 additions and 2 deletions
|
@ -416,7 +416,7 @@ int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *rel
|
|||
{
|
||||
int readd, nread = 0;
|
||||
|
||||
assert(n->state == STATE_STARTED);
|
||||
assert(n->state == STATE_STARTED || n->state == STATE_CONNECTED);
|
||||
assert(node_type(n)->read);
|
||||
|
||||
/* Send in parts if vector not supported */
|
||||
|
@ -478,7 +478,7 @@ int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re
|
|||
{
|
||||
int sent, nsent = 0;
|
||||
|
||||
assert(n->state == STATE_STARTED);
|
||||
assert(n->state == STATE_STARTED || n->state == STATE_CONNECTED);
|
||||
assert(node_type(n)->write);
|
||||
|
||||
#ifdef WITH_HOOKS
|
||||
|
|
Loading…
Add table
Reference in a new issue