-keep track of messages passed to mq
[oweals/gnunet.git] / src / sensor / gnunet-service-sensor_monitoring.c
index f473c3a75bb529adf530336426458500e21e050b..54c0962336e759e3279b3cbf4a67892c78179124 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C)
+     Copyright (C)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -335,6 +335,8 @@ sensor_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                                                                 &end_sensor_run_stat,
                                                                 &sensor_statistics_iterator,
                                                                 sensorinfo);
+    if (NULL == sensorinfo->gnunet_stat_get_handle)
+      sensorinfo->running = GNUNET_NO;
   }
   else if (0 == strcmp ("process", sensorinfo->source))
   {