diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-16 19:56:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-16 19:56:12 +0000 |
commit | aa04f0777c139c486aabb1e776a4e3b79c39f788 (patch) | |
tree | d04b7975121a25c355456da1c4af7aabbc530d30 /src/conversation/gnunet-service-conversation.c | |
parent | 28f42b43e6816b622f6dcc8a2546e9037948d6cd (diff) | |
download | gnunet-aa04f0777c139c486aabb1e776a4e3b79c39f788.tar.gz gnunet-aa04f0777c139c486aabb1e776a4e3b79c39f788.zip |
-more debug messages
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index 7fbff1fac..6e79ad3dd 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -369,6 +369,8 @@ destroy_line_mesh_channels (struct Channel *ch) | |||
369 | struct Line *line = ch->line; | 369 | struct Line *line = ch->line; |
370 | struct GNUNET_MESH_Channel *t; | 370 | struct GNUNET_MESH_Channel *t; |
371 | 371 | ||
372 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
373 | "Destroying mesh channels\n"); | ||
372 | if (NULL != ch->reliable_mq) | 374 | if (NULL != ch->reliable_mq) |
373 | { | 375 | { |
374 | GNUNET_MQ_destroy (ch->reliable_mq); | 376 | GNUNET_MQ_destroy (ch->reliable_mq); |
@@ -1322,7 +1324,11 @@ inbound_end (void *cls, | |||
1322 | struct ClientPhoneHangupMessage hup; | 1324 | struct ClientPhoneHangupMessage hup; |
1323 | 1325 | ||
1324 | if (NULL == ch) | 1326 | if (NULL == ch) |
1327 | { | ||
1328 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1329 | "Mesh channel destroyed, but channel is unknown to us\n"); | ||
1325 | return; | 1330 | return; |
1331 | } | ||
1326 | line = ch->line; | 1332 | line = ch->line; |
1327 | if (ch->channel_unreliable == channel) | 1333 | if (ch->channel_unreliable == channel) |
1328 | { | 1334 | { |
@@ -1332,10 +1338,15 @@ inbound_end (void *cls, | |||
1332 | ch->unreliable_mth = NULL; | 1338 | ch->unreliable_mth = NULL; |
1333 | } | 1339 | } |
1334 | ch->channel_unreliable = NULL; | 1340 | ch->channel_unreliable = NULL; |
1341 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1342 | "Unreliable channel destroyed\n"); | ||
1335 | return; | 1343 | return; |
1336 | } | 1344 | } |
1337 | if (ch->channel_reliable != channel) | 1345 | if (ch->channel_reliable != channel) |
1346 | { | ||
1347 | /* recursive call, I'm the one destroying 'ch' right now */ | ||
1338 | return; | 1348 | return; |
1349 | } | ||
1339 | ch->channel_reliable = NULL; | 1350 | ch->channel_reliable = NULL; |
1340 | 1351 | ||
1341 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1352 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |