- don't send keepalives if traffic is queued
authorBart Polot <bart@net.in.tum.de>
Thu, 24 Jul 2014 15:46:45 +0000 (15:46 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 24 Jul 2014 15:46:45 +0000 (15:46 +0000)
src/cadet/gnunet-service-cadet_connection.c

index 5c28f9e4c65935348c44d66b2bf66290f4d62d7d..3aff5c33f32990546de90370f625b455760c38a6 100644 (file)
@@ -910,6 +910,7 @@ send_connection_keepalive (struct CadetConnection *c, int fwd)
   if (0 < fc->queue_n)
   {
     LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n");
+    return;
   }
 
   GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);