mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
another fix for #120 (sendto: invalid argument)
This commit is contained in:
parent
76d625cdf4
commit
b03748ac2c
1 changed files with 3 additions and 0 deletions
|
@ -365,6 +365,9 @@ int socket_write(struct node *n, struct sample *smps[], unsigned cnt)
|
|||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
if (wbytes <= 0)
|
||||
return 0;
|
||||
|
||||
/* Send message */
|
||||
bytes = sendto(s->sd, data, wbytes, 0, (struct sockaddr *) &s->remote, sizeof(s->remote));
|
||||
if (bytes < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue