[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20955 - gnunet/src/integration-tests
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20955 - gnunet/src/integration-tests |
Date: |
Thu, 12 Apr 2012 10:40:08 +0200 |
Author: wachs
Date: 2012-04-12 10:40:08 +0200 (Thu, 12 Apr 2012)
New Revision: 20955
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:33:23 UTC
(rev 20954)
+++ gnunet/src/integration-tests/connection_watchdog.c 2012-04-12 08:40:08 UTC
(rev 20955)
@@ -570,10 +570,13 @@
if (GNUNET_NO == pc->transport_connected)
{
pc->transport_connected = GNUNET_YES;
- if ((GNUNET_YES == ping) && (NULL == pc->th_ping))
- pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, peer, sizeof
(struct PING), UINT_MAX, GNUNET_TIME_relative_get_forever(),
&send_transport_ping_cb, pc);
- else
- GNUNET_break(0);
+ if (GNUNET_YES == ping)
+ {
+ if (NULL == pc->th_ping)
+ pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, peer,
sizeof (struct PING), UINT_MAX, GNUNET_TIME_relative_get_forever(),
&send_transport_ping_cb, pc);
+ else
+ GNUNET_break(0);
+ }
}
else
{
@@ -590,15 +593,18 @@
if (GNUNET_NO == pc->core_connected)
{
pc->core_connected = GNUNET_YES;
- if ((GNUNET_YES == ping) && (NULL == pc->ch_ping))
- pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch,
+ if (GNUNET_YES == ping)
+ {
+ if (NULL == pc->ch_ping)
+ pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch,
GNUNET_NO, UINT_MAX,
GNUNET_TIME_relative_get_forever(),
peer,
sizeof (struct PING),
send_core_ping_cb, pc);
- else
- GNUNET_break (0);
+ else
+ GNUNET_break (0);
+ }
}
else
{
@@ -824,13 +830,16 @@
"TRANSPORT",
"PING",
GNUNET_i2s (peer)) ;
- if ((GNUNET_YES == ping) && (NULL == pc->th_pong))
- pc->th_pong = GNUNET_TRANSPORT_notify_transmit_ready(th,
+ if (GNUNET_YES == ping)
+ {
+ if (NULL == pc->th_pong)
+ pc->th_pong = GNUNET_TRANSPORT_notify_transmit_ready(th,
peer, sizeof (struct PONG),
UINT_MAX, GNUNET_TIME_relative_get_forever(),
&send_transport_pong_cb, pc);
- else
- GNUNET_break (0);
+ else
+ GNUNET_break (0);
+ }
}
if ((message->size == ntohs (sizeof (struct PONG))) && (message->type ==
ntohs (4321)))
@@ -864,15 +873,18 @@
"CORE",
"PING",
GNUNET_i2s (peer));
- if ((GNUNET_YES == ping) && (NULL == pc->ch_pong))
- pc->ch_pong = GNUNET_CORE_notify_transmit_ready(ch,
+ if (GNUNET_YES == ping)
+ {
+ if (NULL == pc->ch_pong)
+ pc->ch_pong = GNUNET_CORE_notify_transmit_ready(ch,
GNUNET_NO, UINT_MAX,
GNUNET_TIME_relative_get_forever(),
peer,
sizeof (struct PONG),
send_core_pong_cb, pc);
- else
- GNUNET_break (0);
+ else
+ GNUNET_break (0);
+ }
}
if ((message->size == ntohs (sizeof (struct PONG))) && (message->type ==
ntohs (4321)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20955 - gnunet/src/integration-tests,
gnunet <=