commit ff5bb51a53ab5eae733890b8f0d4d5ead6d30a10
parent 9b648bcb7b5e8d59c589b4a03b8b252e6c070ad5
Author: Bart Polot <bart@net.in.tum.de>
Date: Wed, 27 Nov 2013 06:48:21 +0000
- log
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
@@ -463,7 +463,7 @@ destroy_channel (struct GNUNET_MESH_Channel *ch, int call_cleaner)
struct GNUNET_MESH_TransmitHandle *th;
struct GNUNET_MESH_TransmitHandle *next;
- LOG (GNUNET_ERROR_TYPE_DEBUG, "destroy_channel %X\n", ch->chid);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " destroy_channel %X\n", ch->chid);
if (NULL == ch)
{
@@ -476,7 +476,10 @@ destroy_channel (struct GNUNET_MESH_Channel *ch, int call_cleaner)
/* signal channel destruction */
if ( (NULL != h->cleaner) && (0 != ch->peer) && (GNUNET_YES == call_cleaner) )
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " calling cleaner\n");
h->cleaner (h->cls, ch, ch->ctx);
+ }
/* check that clients did not leave messages behind in the queue */
for (th = h->th_head; NULL != th; th = next)
@@ -833,7 +836,7 @@ process_channel_destroy (struct GNUNET_MESH_Handle *h,
struct GNUNET_MESH_Channel *ch;
MESH_ChannelNumber chid;
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Destroying channel from service\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Channel Destroy received from service\n");
chid = ntohl (msg->channel_id);
ch = retrieve_channel (h, chid);
@@ -842,7 +845,7 @@ process_channel_destroy (struct GNUNET_MESH_Handle *h,
LOG (GNUNET_ERROR_TYPE_DEBUG, "channel %X unknown\n", chid);
return;
}
- LOG (GNUNET_ERROR_TYPE_DEBUG, "channel %X destroyed\n", ch->chid);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " destroying channel %X\n", ch->chid);
destroy_channel (ch, GNUNET_YES);
}