X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_misc.c;h=c6a6b024319385db4beb92019097abb6a535ff06;hb=925f33b5cb8ac437346c44086616b0cd3ec839ad;hp=727881bd1080476d2c5d9303b76d315f702cc2a0;hpb=cf85e58da042632bd1def8ecbd24a970f3757986;p=meshlink diff --git a/src/protocol_misc.c b/src/protocol_misc.c index 727881bd..c6a6b024 100644 --- a/src/protocol_misc.c +++ b/src/protocol_misc.c @@ -91,9 +91,10 @@ bool pong_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { /* Succesful connection, reset timeout if this is an outgoing connection. */ + // TODO: completely remove this outgoing, let the autoconnect algorithm handle it if(c->outgoing) { c->outgoing->timeout = 0; - c->outgoing->cfg = NULL; + c->outgoing->state = OUTGOING_START; if(c->outgoing->ai) { freeaddrinfo(c->outgoing->ai);