fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 30 Apr 2010 09:59:17 +0000 (09:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 30 Apr 2010 09:59:17 +0000 (09:59 +0000)
src/peerinfo/peerinfo_api.c

index f857c4a776857568c1d385dbcf682c22524d8a96..e0806978b4c81b57841876c3f0dc8b3787a6b916 100644 (file)
@@ -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);
 }