rps: stop destroying mq
authorJulius Bünger <buenger@mytum.de>
Thu, 28 Dec 2017 18:03:51 +0000 (19:03 +0100)
committerJulius Bünger <buenger@mytum.de>
Thu, 28 Dec 2017 18:03:51 +0000 (19:03 +0100)
src/rps/gnunet-service-rps.c
src/rps/gnunet-service-rps_peers.c

index d3d642ee0f6e716c2e2d05c7d30dd7bf06633902..124b82b72d2ec54d04b1ee4dc74444cebebe3863 100644 (file)
@@ -2129,7 +2129,6 @@ shutdown_task (void *cls)
                                    reply_cls);
       GNUNET_free (reply_cls);
     }
-    GNUNET_MQ_destroy (client_ctx->mq);
     GNUNET_CONTAINER_DLL_remove (cli_ctx_head, cli_ctx_tail, client_ctx);
     GNUNET_free (client_ctx);
   }
index 26881518f6c8777fc88c5ae9ea3149d3bc3b4051..9cc4d3228d7af5212c2c6ff25d8876aae013c508 100644 (file)
@@ -1182,11 +1182,6 @@ Peers_remove_peer (const struct GNUNET_PeerIdentity *peer)
     GNUNET_CADET_channel_destroy (peer_ctx->recv_channel);
     peer_ctx->recv_channel = NULL;
   }
-  if (NULL != peer_ctx->mq)
-  {
-    GNUNET_MQ_destroy (peer_ctx->mq);
-    peer_ctx->mq = NULL;
-  }
 
   GNUNET_free (peer_ctx->send_channel_flags);
   GNUNET_free (peer_ctx->recv_channel_flags);