From: Julius Bünger Date: Thu, 26 Jul 2018 14:52:36 +0000 (+0200) Subject: rps service: don't send 'ping' twice X-Git-Tag: v0.11.0~322^2~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3215ab6ef18080f74362be7cee871179166a9f56;p=oweals%2Fgnunet.git rps service: don't send 'ping' twice --- diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index fcb68b724..a5fb88157 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -1225,7 +1225,8 @@ Peers_issue_peer_liveliness_check (const struct GNUNET_PeerIdentity *peer) ret = Peers_insert_peer (peer); peer_ctx = get_peer_ctx (peer); - if (GNUNET_NO == Peers_check_peer_flag (peer, Peers_ONLINE)) + if ( (GNUNET_NO == Peers_check_peer_flag (peer, Peers_ONLINE)) && + (NULL == peer_ctx->liveliness_check_pending) ) { check_peer_live (peer_ctx); }