mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
path: fix autodetection of poll-mode
This commit is contained in:
parent
24dcd04b95
commit
df3305e263
1 changed files with 1 additions and 5 deletions
|
@ -641,11 +641,7 @@ int path_parse(struct path *p, json_t *cfg, struct vlist *nodes)
|
|||
if (p->poll == -1) {
|
||||
struct path_source *ps = (struct path_source *) vlist_at(&p->sources, 0);
|
||||
|
||||
p->poll = (
|
||||
p->rate > 0 ||
|
||||
vlist_length(&p->sources) > 1
|
||||
)
|
||||
&& node_fd(ps->node) != 1;
|
||||
p->poll = (p->rate > 0 || vlist_length(&p->sources) > 1) && node_fd(ps->node) != -1;
|
||||
}
|
||||
|
||||
ret = vlist_destroy(&sources, NULL, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue