From 63a28d5951594455e050ea3a68ab5b63cb093964 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Tue, 6 May 2025 19:31:48 +0200 Subject: Reset the expire time of routing table on startup --- src/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto.c') diff --git a/src/proto.c b/src/proto.c index 9866c0a..51eb71b 100644 --- a/src/proto.c +++ b/src/proto.c @@ -883,7 +883,7 @@ int proto_run(struct dht* dht, char* buff, size_t recv_len, struct sockaddr_in* struct entry* oldest = NULL; routing_oldest(&oldest); while(oldest != NULL) { - if(difftime(now, oldest->expire) < 0) + if(difftime(now, oldest->expire) < 0.0) break; struct sockaddr_in dest = {0}; -- cgit v1.2.3