-fix order
[oweals/gnunet.git] / src / statistics / statistics_api.c
index 59703ac1f928997814477c8083b08cd396e52d9a..557694cfb5cdd056b7593f47d914336d7d5bd60e 100644 (file)
@@ -330,8 +330,8 @@ do_disconnect (struct GNUNET_STATISTICS_Handle *h)
   
   if (NULL != h->th)
   {
-    h->th = NULL;
     GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
+    h->th = NULL;
   } 
   GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
   h->client = NULL;