rps service: don't send 'ping' twice
authorJulius Bünger <buenger@mytum.de>
Thu, 26 Jul 2018 14:52:36 +0000 (16:52 +0200)
committerJulius Bünger <buenger@mytum.de>
Thu, 26 Jul 2018 14:52:36 +0000 (16:52 +0200)
src/rps/gnunet-service-rps.c

index fcb68b72486a244655ee1db48cab481bdcd74fb0..a5fb88157a5c7c2982f75192e10016d408564ae8 100644 (file)
@@ -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);
   }