summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-02-24 19:06:37 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-02-24 19:06:37 +0100
commit46111957db87028c369ea4792b9c533a9dd09a33 (patch)
treeceb6b5bec9d440fa81a7f05d4561874ba7fb0d06 /src/transport/transport-testing2.c
parent52516482b8c9e67cadedff1da77313fd79abf4d1 (diff)
-sending messages working
Diffstat (limited to 'src/transport/transport-testing2.c')
-rw-r--r--src/transport/transport-testing2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index ee0c4494e..d553a3961 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -337,6 +337,7 @@ hello_iter_cb (void *cb_cls,
struct GNUNET_TRANSPORT_TESTING_PeerContext *p = cb_cls;
if ((NULL == record) && (NULL == emsg))
{
+ p->pic = NULL;
LOG (GNUNET_ERROR_TYPE_DEBUG, "Iteration End\n");
return;
}
@@ -347,6 +348,7 @@ hello_iter_cb (void *cb_cls,
p->hello[p->hello_size-1] = '\0';
GNUNET_PEERSTORE_iterate_cancel (p->pic);
+ p->pic = NULL;
if (NULL != p->start_cb)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -658,7 +660,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct
}
if (NULL != p->pic)
{
- GNUNET_PEERSTORE_iterate_cancel (p->pic);
+ //GNUNET_PEERSTORE_iterate_cancel (p->pic);
p->pic = NULL;
}
if (NULL != p->th)
@@ -684,6 +686,11 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct
GNUNET_ATS_connectivity_done (p->ats);
p->ats = NULL;
}
+ if (NULL != p->ah)
+ {
+ GNUNET_TRANSPORT_application_done (p->ah);
+ p->ah = NULL;
+ }
if (NULL != p->ph)
{
GNUNET_PEERSTORE_disconnect (p->ph, GNUNET_NO);