X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fnet.c;h=85cbf3d442fd1e60e466ca70351bbddeb1d2a126;hp=020ffd4f75de85855620a169349216b9b6cf8efe;hb=af87825c8c8479c576af390adae502b2e5bf6e5f;hpb=72fe3cdc361b933d8a471902b073378cbed6273d diff --git a/src/net.c b/src/net.c index 020ffd4f..85cbf3d4 100644 --- a/src/net.c +++ b/src/net.c @@ -626,6 +626,8 @@ static void periodic_handler(event_loop_t *loop, void *data) { sptps_stop(&n->sptps); n->status.waitingforkey = false; n->last_req_key = 0; + } else { + n->last_req_key = mesh->loop.now.tv_sec; } } }