src/rps/gnunet-service-rps_sampler_elem.c
src/rps/gnunet-service-rps_view.c
src/rps/rps_api.c
+src/rps/rps_test_lib.c
src/rps/rps-test_util.c
src/scalarproduct/gnunet-scalarproduct.c
src/scalarproduct/gnunet-service-scalarproduct_alice.c
{
struct GNUNET_PeerIdentity *peer = cls;
struct PeerContext *peer_ctx;
+ uint32_t *channel_flag;
if (GNUNET_NO == Peers_check_peer_known (peer))
{/* We don't want to implicitly create a context that we're about to kill */
- LOG (GNUNET_ERROR_TYPE_DEBUG,
+ LOG (GNUNET_ERROR_TYPE_WARNING,
"channel (%s) without associated context was destroyed\n",
GNUNET_i2s (peer));
return;
if (NULL != peer_ctx->send_channel)
{
GNUNET_CADET_channel_destroy (peer_ctx->send_channel);
+ channel_flag = Peers_get_channel_flag (&peer_ctx->peer_id, Peers_CHANNEL_ROLE_SENDING);
+ Peers_set_channel_flag (channel_flag, Peers_CHANNEL_DESTROING);
peer_ctx->send_channel = NULL;
peer_ctx->mq = NULL;
}
if (NULL != peer_ctx->recv_channel)
{
GNUNET_CADET_channel_destroy (peer_ctx->recv_channel);
+ channel_flag = Peers_get_channel_flag (&peer_ctx->peer_id, Peers_CHANNEL_ROLE_RECEIVING);
+ Peers_set_channel_flag (channel_flag, Peers_CHANNEL_DESTROING);
peer_ctx->recv_channel = NULL;
}
/* Set the #Peers_ONLINE flag accordingly */