1
0
Fork 0
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:
Dennis Potter 2018-07-19 14:55:07 +02:00
parent bf8a86ff7d
commit 84f85e137d

View file

@ -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