X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_socket.c;h=9bd00bcc4fab5620ea3572e429eebbac77cd4d91;hb=244c5cd1dba4efdfd54aee505baaccf050900c07;hp=d846237275c023010b07b5aaca342e31f9be7d47;hpb=c4deb6c20dceb73c0ac6baa2eb901434584e6191;p=meshlink diff --git a/src/net_socket.c b/src/net_socket.c index d8462372..9bd00bcc 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -143,6 +143,10 @@ static void handle_meta_write(meshlink_handle_t *mesh, connection_t *c) { } } +void flush_meta(meshlink_handle_t *mesh, connection_t *c) { + handle_meta_write(mesh, c); +} + static void handle_meta_io(event_loop_t *loop, void *data, int flags) { meshlink_handle_t *mesh = loop->data; connection_t *c = data; @@ -374,6 +378,7 @@ begin: /* We are waiting for a callback from the ADNS thread */ } else if(outgoing->state == OUTGOING_NO_KNOWN_ADDRESSES) { logger(mesh, MESHLINK_ERROR, "No known addresses for %s", outgoing->node->name); + list_delete(mesh->outgoings, outgoing); } else { logger(mesh, MESHLINK_ERROR, "Could not set up a meta connection to %s", outgoing->node->name); retry_outgoing(mesh, outgoing);