Rename socket_connected to socket_ready, since we use it before accept()

This commit is contained in:
Ian Gulliver
2016-03-02 19:28:02 -08:00
parent 14be11de79
commit 91775999d8
7 changed files with 13 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ static void outgoing_connect_result(struct outgoing *outgoing, int result) {
case 0:
fprintf(stderr, "O %s: Connected to %s/%s\n", outgoing->id, hbuf, sbuf);
freeaddrinfo(outgoing->addrs);
flow_socket_connected(outgoing->peer.fd, outgoing->flow);
flow_socket_ready(outgoing->peer.fd, outgoing->flow);
outgoing->attempt = 0;
int fd = outgoing->peer.fd;
outgoing->peer.fd = -1;