asyncsendto: remove failed sendto() from queue

This commit is contained in:
Thomas Bernard 2014-02-25 11:08:27 +01:00
parent d20d959920
commit 1985cbf3ef
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ int try_sendto(fd_set * writefds)
continue;
}
/* uncatched error */
/* remove from the list */
LIST_REMOVE(elt, entries);
free(elt);
return n;
} else {
/* remove from the list */