X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;fp=src%2Fprotocol_auth.c;h=c7d6882984e8239f7f30345fa54bb04aae2a7ebd;hb=f91651414adcac1c05e1b923bee4cb3caf559c3b;hp=e9aa0c51ddb4370bf4ba4135c92224e434e5845b;hpb=848a27a8bd753a40b302a0f527b3a8e6c684f96d;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index e9aa0c51..c7d68829 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -432,7 +432,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { n->devclass = devclass; n->status.dirty = true; - n->last_successfull_connection = time(NULL); + n->last_successfull_connection = mesh->loop.now.tv_sec; n->connection = c; c->node = n;