-fix rps service: call sampler_request_cancel () on destruction of handle
authorJulius Bünger <buenger@mytum.de>
Sun, 25 Sep 2016 23:31:23 +0000 (23:31 +0000)
committerJulius Bünger <buenger@mytum.de>
Sun, 25 Sep 2016 23:31:23 +0000 (23:31 +0000)
src/rps/gnunet-service-rps.c

index 8df574d97c539dda7b45b93608d81cced0b0dbe5..0319977819d01984bc6fa21cdb463c07e6509b95 100644 (file)
@@ -926,6 +926,7 @@ destroy_reply_cls (struct ReplyCls *rep_cls)
 
   cli_ctx = rep_cls->cli_ctx;
   GNUNET_assert (NULL != cli_ctx);
+  RPS_sampler_request_cancel (rep_cls->req_handle);
   GNUNET_CONTAINER_DLL_remove (cli_ctx->rep_cls_head,
                                cli_ctx->rep_cls_tail,
                                rep_cls);