[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27069 - gnunet/src/nse
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27069 - gnunet/src/nse |
Date: |
Wed, 8 May 2013 16:26:24 +0200 |
Author: harsha
Date: 2013-05-08 16:26:24 +0200 (Wed, 08 May 2013)
New Revision: 27069
Modified:
gnunet/src/nse/gnunet-service-nse.c
Log:
- flush logger data before disconnecting
Modified: gnunet/src/nse/gnunet-service-nse.c
===================================================================
--- gnunet/src/nse/gnunet-service-nse.c 2013-05-08 13:04:36 UTC (rev 27068)
+++ gnunet/src/nse/gnunet-service-nse.c 2013-05-08 14:26:24 UTC (rev 27069)
@@ -1266,7 +1266,24 @@
}
+#if ENABLE_NSE_HISTOGRAM
/**
+ * Functions of this type are called to notify a successful transmission of the
+ * message to the logger service
+ *
+ * @param cls NULL
+ * @param size the amount of data sent
+ */
+static void
+flush_comp_cb (void *cls, size_t size)
+{
+ GNUNET_TESTBED_LOGGER_disconnect (lh);
+ lh = NULL;
+}
+#endif
+
+
+/**
* Task run during shutdown.
*
* @param cls unused
@@ -1317,8 +1334,7 @@
my_private_key = NULL;
}
#if ENABLE_NSE_HISTOGRAM
- GNUNET_TESTBED_LOGGER_disconnect (lh);
- lh = NULL;
+ GNUNET_TESTBED_LOGGER_flush (lh, &flush_comp_cb, NULL); /* actual shutdown
delayed */
#endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27069 - gnunet/src/nse,
gnunet <=