X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fnet_socket.c;h=63bf49ea3c6f0511de3322e9d84e21d8ddcc5092;hp=fcadd90c25e95531cc8f05833971f18f1267699f;hb=4c57e6902219ecca1872e18e34365d8e54a0f407;hpb=27b37a02bd75e71ed0a95ab201ba15ef4f5cb588 diff --git a/src/net_socket.c b/src/net_socket.c index fcadd90c..63bf49ea 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -91,7 +91,7 @@ void retry_outgoing(meshlink_handle_t *mesh, outgoing_t *outgoing) { outgoing->timeout = mesh->maxtimeout; } - timeout_add(&mesh->loop, &outgoing->ev, retry_outgoing_handler, outgoing, &(struct timeval) { + timeout_add(&mesh->loop, &outgoing->ev, retry_outgoing_handler, outgoing, &(struct timespec) { outgoing->timeout, prng(mesh, TIMER_FUDGE) });