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:
parent
b0d444dc28
commit
43f87d47e9
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue