Call less syscalls after each accept()

This commit is contained in:
Ian Gulliver
2016-02-29 15:22:10 -08:00
parent e44edeba53
commit 3539f9d640
2 changed files with 4 additions and 2 deletions

View File

@@ -79,8 +79,6 @@ static void incoming_handler(struct peer *peer) {
local_hbuf, local_sbuf,
peer_hbuf, peer_sbuf);
socket_connected_init(fd);
if (!incoming_hello(fd, incoming)) {
fprintf(stderr, "I %s: Error writing greeting\n", incoming->id);
assert(!close(fd));