From: Christian Grothoff Date: Tue, 24 Jan 2012 20:11:33 +0000 (+0000) Subject: -do not leave th non-NULL on reconnect X-Git-Tag: initial-import-from-subversion-38251~15146 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4640985528ba9d810c6cd2396d759210a9e49de4;p=oweals%2Fgnunet.git -do not leave th non-NULL on reconnect --- 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); }