gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r26521 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r26521 - gnunet/src/testbed
Date: Wed, 20 Mar 2013 14:17:46 +0100

Author: grothoff
Date: 2013-03-20 14:17:45 +0100 (Wed, 20 Mar 2013)
New Revision: 26521

Modified:
   gnunet/src/testbed/testbed_api_statistics.c
Log:
-hopefully no longer needed...

Modified: gnunet/src/testbed/testbed_api_statistics.c
===================================================================
--- gnunet/src/testbed/testbed_api_statistics.c 2013-03-20 13:16:41 UTC (rev 
26520)
+++ gnunet/src/testbed/testbed_api_statistics.c 2013-03-20 13:17:45 UTC (rev 
26521)
@@ -190,13 +190,6 @@
   struct PeerGetStatsContext *peer_sc = cls;
   struct GetStatsContext *sc;
 
-  if (NULL == peer_sc->get_handle)
-  {
-    /* We are being called synchronously in call to GNUNET_STATISTICS_destroy()
-       in statistics_da() after we cancelled the GetHandle */
-    GNUNET_assert (GNUNET_SYSERR == success);
-    return;
-  }
   GNUNET_break (GNUNET_OK == success);
   sc = peer_sc->sc;
   peer_sc->get_handle = NULL; 
@@ -301,14 +294,14 @@
 statistics_da (void *cls, void *op_result)
 {
   struct PeerGetStatsContext *peer_sc = cls;
+  struct GNUNET_STATISTICS_Handle *sh = op_result;
 
   if (NULL != peer_sc->get_handle)
   {
     GNUNET_STATISTICS_get_cancel (peer_sc->get_handle);
     peer_sc->get_handle = NULL;
   }
-  GNUNET_STATISTICS_destroy ((struct GNUNET_STATISTICS_Handle *) op_result,
-                             GNUNET_NO);
+  GNUNET_STATISTICS_destroy (sh, GNUNET_NO);
   if (GNUNET_SCHEDULER_NO_TASK != peer_sc->op_done_task_id)
     GNUNET_SCHEDULER_cancel (peer_sc->op_done_task_id);
   GNUNET_free (peer_sc);




reply via email to

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