aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-05 12:28:39 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-05 12:28:39 +0000
commit18855c3cfcf73985f9caeff78050f462a9c03d45 (patch)
treeee5db5255a0cdfebdb7c3032233f83f1472cf56e /src/mesh/gnunet-service-mesh_local.c
parent3c051e4385029ce7d0147dcc47b8e54e87fe8265 (diff)
downloadgnunet-18855c3cfcf73985f9caeff78050f462a9c03d45.tar.gz
gnunet-18855c3cfcf73985f9caeff78050f462a9c03d45.zip
- nonexistent channel does not necessarily means an error, could be cross-notification of channel_destroy
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index 8b66517d0..a5128c46f 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -432,9 +432,8 @@ handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client,
432 ch = GML_channel_get (c, chid); 432 ch = GML_channel_get (c, chid);
433 if (NULL == ch) 433 if (NULL == ch)
434 { 434 {
435 LOG (GNUNET_ERROR_TYPE_ERROR, " channel %X not found\n", chid); 435 LOG (GNUNET_ERROR_TYPE_DEBUG, " channel %X not found\n", chid);
436 GNUNET_break (0); 436 GNUNET_SERVER_receive_done (client, GNUNET_OK);
437 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
438 return; 437 return;
439 } 438 }
440 439
@@ -549,10 +548,9 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client,
549 LOG (GNUNET_ERROR_TYPE_DEBUG, " -- ch %p\n", ch); 548 LOG (GNUNET_ERROR_TYPE_DEBUG, " -- ch %p\n", ch);
550 if (NULL == ch) 549 if (NULL == ch)
551 { 550 {
552 GNUNET_break (0); 551 LOG (GNUNET_ERROR_TYPE_DEBUG, "Channel %X unknown.\n", chid);
553 LOG (GNUNET_ERROR_TYPE_WARNING, "Channel %X unknown.\n", chid); 552 LOG (GNUNET_ERROR_TYPE_DEBUG, " for client %u.\n", c->id);
554 LOG (GNUNET_ERROR_TYPE_WARNING, " for client %u.\n", c->id); 553 GNUNET_SERVER_receive_done (client, GNUNET_OK);
555 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
556 return; 554 return;
557 } 555 }
558 556