pex: update last query sent timestamp
authorFelix Fietkau <nbd@nbd.name>
Fri, 16 Sep 2022 19:14:20 +0000 (21:14 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 16 Sep 2022 19:14:20 +0000 (21:14 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex.c

diff --git a/pex.c b/pex.c
index 0707ef0ddbd5e8bcfda00c52ddef3c8a428c9a54..632d016be4b7f5afd4c36315f83147edfb48aede 100644 (file)
--- a/pex.c
+++ b/pex.c
@@ -376,6 +376,7 @@ network_pex_query_hosts(struct network *net)
 
                        D_PEER(net, peer, "send query for %d hosts", hosts);
                        pex_msg_send(net, peer);
+                       peer->state.last_query_sent = now;
                        return;
                }
        }