]> git.meshlink.io Git - meshlink/blobdiff - src/conf.c
Update UTCP and replace gettimeofday() with clock_gettime().
[meshlink] / src / conf.c
index 9527c1edf5c13cda07db36b6255ec4ee777b078e..7cf923bc88b087c1c9da0821146780a305977379 100644 (file)
@@ -903,7 +903,7 @@ bool invitation_read(meshlink_handle_t *mesh, const char *conf_subdir, const cha
                return false;
        }
 
-       if(mesh->loop.now.tv_sec >= st.st_mtime + mesh->invitation_timeout) {
+       if(time(NULL) >= st.st_mtime + mesh->invitation_timeout) {
                logger(mesh, MESHLINK_ERROR, "Peer tried to use an outdated invitation file %s\n", name);
                fclose(f);
                unlink(used_path);