1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

improved error handling in path thread

This commit is contained in:
Steffen Vogel 2015-10-09 15:49:26 +02:00
parent b0d444dc28
commit 43f87d47e9

View file

@ -79,6 +79,10 @@ static void * path_run(void *arg)
for(;;) {
/* Receive message */
int recv = node_read(p->in, p->pool, p->poolsize, p->received, p->in->combine);
if (recv < 0)
error("Failed to receive message from node '%s'", p->in->name);
else if (recv == 0)
continue;
/** @todo Replace this timestamp by hardware timestamping */
clock_gettime(CLOCK_REALTIME, &p->ts_recv);