summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_reliability.c
diff options
context:
space:
mode:
authorBruno Cabral <bcabral@uw.edu>2011-11-11 20:43:01 +0000
committerBruno Cabral <bcabral@uw.edu>2011-11-11 20:43:01 +0000
commit8e2636d98c2de0098892f876d1834d79986d2089 (patch)
treeda2e336b01a4991e1a5f5a87a50cdb963862fa06 /src/transport/test_transport_api_reliability.c
parent284cdb8ef69455ea47c60eb7533cfe4ddcf090f6 (diff)
Fix missing test_connected
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r--src/transport/test_transport_api_reliability.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 5bbff2550..655f6f0a3 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -165,7 +165,7 @@ end_badly ()
die_task = GNUNET_SCHEDULER_NO_TASK;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Fail! Stopping peers\n");
- if (test_connected == GNUNET_NO)
+ if (test_connected == GNUNET_YES)
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peers got connected\n");
else
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peers got NOT connected\n");
@@ -400,6 +400,7 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
GNUNET_free (p1_c);
+ test_connected = GNUNET_YES;
cc = NULL;
GNUNET_SCHEDULER_add_now (&sendtask, NULL);