From 4640985528ba9d810c6cd2396d759210a9e49de4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 24 Jan 2012 20:11:33 +0000 Subject: [PATCH] -do not leave th non-NULL on reconnect --- src/mesh/mesh_api.c | 3 +++ 1 file changed, 3 insertions(+) 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) if (NULL != h->th) { GNUNET_CLIENT_notify_transmit_ready_cancel (h->th); + h->th = NULL; } if (NULL != h->client) { @@ -1333,10 +1334,12 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle) if (NULL != handle->th) { GNUNET_CLIENT_notify_transmit_ready_cancel (handle->th); + handle->th = NULL; } if (NULL != handle->client) { GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); + handle->client = NULL; } GNUNET_free (handle); } -- 2.25.1