sensor: fixes for proof-of-work, test passes now
[oweals/gnunet.git] / src / sensor / gnunet-service-sensor.c
index 02bc00a1a08fa405c16031038e2a3a8433d38b9a..e8b01ae33d5bfada5ec76fa2621c2a0eaa64dee9 100644 (file)
@@ -130,9 +130,11 @@ handle_anomaly_force (void *cls, struct GNUNET_SERVER_Client *client,
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Force anomaly message received for a sensor we don't have.\n");
+    GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
     return;
   }
   SENSOR_reporting_anomaly_update (sensor, ntohs (anomaly_msg->anomalous));
+  GNUNET_SERVER_receive_done (client, GNUNET_YES);
 }