gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18665 - gnunet/src/statistics


From: gnunet
Subject: [GNUnet-SVN] r18665 - gnunet/src/statistics
Date: Sat, 17 Dec 2011 20:02:42 +0100

Author: grothoff
Date: 2011-12-17 20:02:42 +0100 (Sat, 17 Dec 2011)
New Revision: 18665

Modified:
   gnunet/src/statistics/statistics_api.c
Log:
-another stats crash

Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c      2011-12-17 18:51:12 UTC (rev 
18664)
+++ gnunet/src/statistics/statistics_api.c      2011-12-17 19:02:42 UTC (rev 
18665)
@@ -333,8 +333,11 @@
     GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
     h->th = NULL;
   } 
-  GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
-  h->client = NULL;
+  if (NULL != h->client)
+  {
+    GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
+    h->client = NULL;
+  }
   h->receiving = GNUNET_NO;
   if (NULL != (c = h->current))
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]