aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-27 06:48:21 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-27 06:48:21 +0000
commitff5bb51a53ab5eae733890b8f0d4d5ead6d30a10 (patch)
treef9294970a36e44722d7e803829590e3331b05214 /src
parent9b648bcb7b5e8d59c589b4a03b8b252e6c070ad5 (diff)
downloadgnunet-ff5bb51a53ab5eae733890b8f0d4d5ead6d30a10.tar.gz
gnunet-ff5bb51a53ab5eae733890b8f0d4d5ead6d30a10.zip
- log
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_api.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 36d25b4e2..c202ed231 100644
--- 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)
463 struct GNUNET_MESH_TransmitHandle *th; 463 struct GNUNET_MESH_TransmitHandle *th;
464 struct GNUNET_MESH_TransmitHandle *next; 464 struct GNUNET_MESH_TransmitHandle *next;
465 465
466 LOG (GNUNET_ERROR_TYPE_DEBUG, "destroy_channel %X\n", ch->chid); 466 LOG (GNUNET_ERROR_TYPE_DEBUG, " destroy_channel %X\n", ch->chid);
467 467
468 if (NULL == ch) 468 if (NULL == ch)
469 { 469 {
@@ -476,7 +476,10 @@ destroy_channel (struct GNUNET_MESH_Channel *ch, int call_cleaner)
476 476
477 /* signal channel destruction */ 477 /* signal channel destruction */
478 if ( (NULL != h->cleaner) && (0 != ch->peer) && (GNUNET_YES == call_cleaner) ) 478 if ( (NULL != h->cleaner) && (0 != ch->peer) && (GNUNET_YES == call_cleaner) )
479 {
480 LOG (GNUNET_ERROR_TYPE_DEBUG, " calling cleaner\n");
479 h->cleaner (h->cls, ch, ch->ctx); 481 h->cleaner (h->cls, ch, ch->ctx);
482 }
480 483
481 /* check that clients did not leave messages behind in the queue */ 484 /* check that clients did not leave messages behind in the queue */
482 for (th = h->th_head; NULL != th; th = next) 485 for (th = h->th_head; NULL != th; th = next)
@@ -833,7 +836,7 @@ process_channel_destroy (struct GNUNET_MESH_Handle *h,
833 struct GNUNET_MESH_Channel *ch; 836 struct GNUNET_MESH_Channel *ch;
834 MESH_ChannelNumber chid; 837 MESH_ChannelNumber chid;
835 838
836 LOG (GNUNET_ERROR_TYPE_DEBUG, "Destroying channel from service\n"); 839 LOG (GNUNET_ERROR_TYPE_DEBUG, "Channel Destroy received from service\n");
837 chid = ntohl (msg->channel_id); 840 chid = ntohl (msg->channel_id);
838 ch = retrieve_channel (h, chid); 841 ch = retrieve_channel (h, chid);
839 842
@@ -842,7 +845,7 @@ process_channel_destroy (struct GNUNET_MESH_Handle *h,
842 LOG (GNUNET_ERROR_TYPE_DEBUG, "channel %X unknown\n", chid); 845 LOG (GNUNET_ERROR_TYPE_DEBUG, "channel %X unknown\n", chid);
843 return; 846 return;
844 } 847 }
845 LOG (GNUNET_ERROR_TYPE_DEBUG, "channel %X destroyed\n", ch->chid); 848 LOG (GNUNET_ERROR_TYPE_DEBUG, " destroying channel %X\n", ch->chid);
846 destroy_channel (ch, GNUNET_YES); 849 destroy_channel (ch, GNUNET_YES);
847} 850}
848 851