stream debug and test

This commit is contained in:
Olof hagsand 2018-10-30 22:54:19 +01:00
parent fa9b9c7e2e
commit e0e2e355d7
2 changed files with 12 additions and 10 deletions

View file

@ -472,13 +472,14 @@ stream_notify_xml(clicon_handle h,
goto done;
ss = ss1;
}
else /* xpath match */
else{ /* xpath match */
if (ss->ss_xpath == NULL ||
strlen(ss->ss_xpath)==0 ||
xpath_first(xevent, "%s", ss->ss_xpath) != NULL)
if ((*ss->ss_fn)(h, 0, xevent, ss->ss_arg) < 0)
goto done;
ss = NEXTQ(struct stream_subscription *, ss);
ss = NEXTQ(struct stream_subscription *, ss);
}
} while (ss && ss != es->es_subscription);
retval = 0;
done: