gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20956 - gnunet/src/integration-tests


From: gnunet
Subject: [GNUnet-SVN] r20956 - gnunet/src/integration-tests
Date: Thu, 12 Apr 2012 10:43:48 +0200

Author: wachs
Date: 2012-04-12 10:43:48 +0200 (Thu, 12 Apr 2012)
New Revision: 20956

Modified:
   gnunet/src/integration-tests/connection_watchdog.c
Log:
- fix


Modified: gnunet/src/integration-tests/connection_watchdog.c
===================================================================
--- gnunet/src/integration-tests/connection_watchdog.c  2012-04-12 08:40:08 UTC 
(rev 20955)
+++ gnunet/src/integration-tests/connection_watchdog.c  2012-04-12 08:43:48 UTC 
(rev 20956)
@@ -452,23 +452,25 @@
 {
   struct PeerContainer *pc = value;
 
-  if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping))
-    pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id,
-        sizeof (struct PING), UINT_MAX,
-        GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc);
-  else
-    GNUNET_break(0);
+  if (ping == GNUNET_YES)
+  {
+    if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping))
+      pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id,
+          sizeof (struct PING), UINT_MAX,
+          GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc);
+    else
+      GNUNET_break(0);
 
-  if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping))
-    pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch,
-                                             GNUNET_NO, UINT_MAX,
-                                             
GNUNET_TIME_relative_get_forever(),
-                                             &pc->id,
-                                             sizeof (struct PING),
-                                             send_core_ping_cb, pc);
-  else
-    GNUNET_break (0);
-
+    if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping))
+      pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch,
+                                               GNUNET_NO, UINT_MAX,
+                                               
GNUNET_TIME_relative_get_forever(),
+                                               &pc->id,
+                                               sizeof (struct PING),
+                                               send_core_ping_cb, pc);
+    else
+      GNUNET_break (0);
+  }
   return GNUNET_OK;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]