Add missing break when send() fails

This commit is contained in:
Christopher Wellons 2019-02-05 23:25:15 -05:00
parent 2a9c514702
commit 1583f6e5b3

View File

@ -689,6 +689,7 @@ main(int argc, char **argv)
continue; /* try again */
} else if (out == -1) {
client_destroy(client);
break;
} else {
logmsg(LOG_DEBUG, "send(%d) = %d", fd, (int)out);
client->bytes_sent += out;