diff options
Diffstat (limited to 'socket/tcp-bsd.c')
-rw-r--r-- | socket/tcp-bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/socket/tcp-bsd.c b/socket/tcp-bsd.c index 6e3f2e4..620c796 100644 --- a/socket/tcp-bsd.c +++ b/socket/tcp-bsd.c @@ -342,6 +342,8 @@ socket_send_messages (NiceSocket *sock, const NiceAddress *to, if (len < 0) { /* Error. */ + if (i > 0) + break; return len; } else if (len == 0) { /* EWOULDBLOCK. */ |