]> git.meshlink.io Git - meshlink/blobdiff - src/devtools.c
When resetting timers that use CLOCK_MONOTONIC, use a negative value.
[meshlink] / src / devtools.c
index fb6ab257a0f3eae901ff869c53a774aeb48c413d..e172b0717950cd43fe526b8796e58fb7e2949ff0 100644 (file)
@@ -353,9 +353,9 @@ void devtool_force_sptps_renewal(meshlink_handle_t *mesh, meshlink_node_t *node)
        node_t *n = (node_t *)node;
        connection_t *c = n->connection;
 
-       n->last_req_key = 0;
+       n->last_req_key = -3600;
 
        if(c) {
-               c->last_key_renewal = 0;
+               c->last_key_renewal = -3600;
        }
 }