From 1ffbab2de23c37b8df3d8c22d6704979f156a9b0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 30 Apr 2010 09:59:17 +0000 Subject: [PATCH] fix --- src/peerinfo/peerinfo_api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index f857c4a77..e0806978b 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -173,6 +173,11 @@ GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h) tqe->cont (tqe->cont_cls, GNUNET_SYSERR); GNUNET_free (tqe); } + if (h->th != NULL) + { + GNUNET_CLIENT_notify_transmit_ready_cancel (h->th); + h->th = NULL; + } GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); GNUNET_free (h); } -- 2.25.1