-fix ftbfs
[oweals/gnunet.git] / src / sensor / gnunet-service-sensor_monitoring.c
index f473c3a75bb529adf530336426458500e21e050b..145e81c7977b645e1810146d1e7ca1ae1ce3aa07 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
@@ -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))
   {