forked from extern/endlessh
Add missing break when send() fails
This commit is contained in:
parent
2a9c514702
commit
1583f6e5b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user