X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.c;h=009839314cba71ca319455d657896c4d8bcd9cd1;hb=f00c8df9175fc1aed22f3a889ca039beb78bb98d;hp=c34b24c9643f4bde69e2904877502e78c01f2b86;hpb=56b4ea7e7a8fe29c1c1066def42c792cb51540d0;p=meshlink diff --git a/src/meshlink.c b/src/meshlink.c index c34b24c9..00983931 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -3863,7 +3863,7 @@ static void channel_retransmit(struct utcp_connection *utcp_connection) { node_t *n = utcp_connection->utcp->priv; meshlink_handle_t *mesh = n->mesh; - if(n->mtuprobes == 31) { + if(n->mtuprobes == 31 && n->mtutimeout.cb) { timeout_set(&mesh->loop, &n->mtutimeout, &(struct timespec) { 0, 0 });