aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-24 20:11:33 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-24 20:11:33 +0000
commit4640985528ba9d810c6cd2396d759210a9e49de4 (patch)
treee1f3a76e9093d62f09be073621e6232e08752997 /src/mesh
parentdeb0aa383d7b97b7d395096f81b612160965e5be (diff)
downloadgnunet-4640985528ba9d810c6cd2396d759210a9e49de4.tar.gz
gnunet-4640985528ba9d810c6cd2396d759210a9e49de4.zip
-do not leave th non-NULL on reconnect
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 4f733c1d3..0638f9f85 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -663,6 +663,7 @@ reconnect (struct GNUNET_MESH_Handle *h)
663 if (NULL != h->th) 663 if (NULL != h->th)
664 { 664 {
665 GNUNET_CLIENT_notify_transmit_ready_cancel (h->th); 665 GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
666 h->th = NULL;
666 } 667 }
667 if (NULL != h->client) 668 if (NULL != h->client)
668 { 669 {
@@ -1333,10 +1334,12 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle)
1333 if (NULL != handle->th) 1334 if (NULL != handle->th)
1334 { 1335 {
1335 GNUNET_CLIENT_notify_transmit_ready_cancel (handle->th); 1336 GNUNET_CLIENT_notify_transmit_ready_cancel (handle->th);
1337 handle->th = NULL;
1336 } 1338 }
1337 if (NULL != handle->client) 1339 if (NULL != handle->client)
1338 { 1340 {
1339 GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); 1341 GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO);
1342 handle->client = NULL;
1340 } 1343 }
1341 GNUNET_free (handle); 1344 GNUNET_free (handle);
1342} 1345}