aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing2.c')
-rw-r--r--src/transport/transport-testing2.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index 513b030b8..ee0c4494e 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -504,15 +504,13 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
504 "Peer %u configured with identity `%s'\n", 504 "Peer %u configured with identity `%s'\n",
505 p->no, 505 p->no,
506 GNUNET_i2s_full (&p->id)); 506 GNUNET_i2s_full (&p->id));
507 p->tmh = GNUNET_TRANSPORT_manipulation_connect (p->cfg);
508 p->th = GNUNET_TRANSPORT_core_connect (p->cfg, 507 p->th = GNUNET_TRANSPORT_core_connect (p->cfg,
509 NULL, 508 NULL,
510 handlers, 509 handlers,
511 p, 510 p,
512 &notify_connect, 511 &notify_connect,
513 &notify_disconnect); 512 &notify_disconnect);
514 if ((NULL == p->th) || 513 if (NULL == p->th)
515 (NULL == p->tmh))
516 { 514 {
517 LOG (GNUNET_ERROR_TYPE_ERROR, 515 LOG (GNUNET_ERROR_TYPE_ERROR,
518 "Failed to connect to transport service for peer `%s': `%s'\n", 516 "Failed to connect to transport service for peer `%s': `%s'\n",
@@ -577,11 +575,6 @@ GNUNET_TRANSPORT_TESTING_restart_peer (struct
577 GNUNET_TRANSPORT_core_disconnect (p->th); 575 GNUNET_TRANSPORT_core_disconnect (p->th);
578 p->th = NULL; 576 p->th = NULL;
579 } 577 }
580 if (NULL != p->tmh)
581 {
582 GNUNET_TRANSPORT_manipulation_disconnect (p->tmh);
583 p->tmh = NULL;
584 }
585 for (cc = p->tth->cc_head; NULL != cc; cc = ccn) 578 for (cc = p->tth->cc_head; NULL != cc; cc = ccn)
586 { 579 {
587 ccn = cc->next; 580 ccn = cc->next;
@@ -668,11 +661,6 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct
668 GNUNET_PEERSTORE_iterate_cancel (p->pic); 661 GNUNET_PEERSTORE_iterate_cancel (p->pic);
669 p->pic = NULL; 662 p->pic = NULL;
670 } 663 }
671 if (NULL != p->tmh)
672 {
673 GNUNET_TRANSPORT_manipulation_disconnect (p->tmh);
674 p->tmh = NULL;
675 }
676 if (NULL != p->th) 664 if (NULL != p->th)
677 { 665 {
678 GNUNET_TRANSPORT_core_disconnect (p->th); 666 GNUNET_TRANSPORT_core_disconnect (p->th);