From: Christian Grothoff Date: Fri, 30 Apr 2010 09:59:17 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~21945 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1ffbab2de23c37b8df3d8c22d6704979f156a9b0;p=oweals%2Fgnunet.git fix --- 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); }