diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-12 08:43:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-12 08:43:48 +0000 |
commit | bf390d7f1b532f2430ba48f24d96fcb4bf4cc0e0 (patch) | |
tree | b9f3fa37f142d90d34752640610f6c2c1b31ade8 /src/integration-tests | |
parent | c43c8adf0db4bcb8f2ab9837fdf4b9eaa7d140d2 (diff) | |
download | gnunet-bf390d7f1b532f2430ba48f24d96fcb4bf4cc0e0.tar.gz gnunet-bf390d7f1b532f2430ba48f24d96fcb4bf4cc0e0.zip |
- fix
Diffstat (limited to 'src/integration-tests')
-rw-r--r-- | src/integration-tests/connection_watchdog.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c index b0efb3941..942059c91 100644 --- a/src/integration-tests/connection_watchdog.c +++ b/src/integration-tests/connection_watchdog.c | |||
@@ -452,23 +452,25 @@ int map_ping_it (void *cls, | |||
452 | { | 452 | { |
453 | struct PeerContainer *pc = value; | 453 | struct PeerContainer *pc = value; |
454 | 454 | ||
455 | if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping)) | 455 | if (ping == GNUNET_YES) |
456 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id, | 456 | { |
457 | sizeof (struct PING), UINT_MAX, | 457 | if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping)) |
458 | GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc); | 458 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id, |
459 | else | 459 | sizeof (struct PING), UINT_MAX, |
460 | GNUNET_break(0); | 460 | GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc); |
461 | 461 | else | |
462 | if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping)) | 462 | GNUNET_break(0); |
463 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, | ||
464 | GNUNET_NO, UINT_MAX, | ||
465 | GNUNET_TIME_relative_get_forever(), | ||
466 | &pc->id, | ||
467 | sizeof (struct PING), | ||
468 | send_core_ping_cb, pc); | ||
469 | else | ||
470 | GNUNET_break (0); | ||
471 | 463 | ||
464 | if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping)) | ||
465 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, | ||
466 | GNUNET_NO, UINT_MAX, | ||
467 | GNUNET_TIME_relative_get_forever(), | ||
468 | &pc->id, | ||
469 | sizeof (struct PING), | ||
470 | send_core_ping_cb, pc); | ||
471 | else | ||
472 | GNUNET_break (0); | ||
473 | } | ||
472 | return GNUNET_OK; | 474 | return GNUNET_OK; |
473 | } | 475 | } |
474 | 476 | ||