aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-04-10 13:05:53 +0000
committerBart Polot <bart@net.in.tum.de>2014-04-10 13:05:53 +0000
commit37f390b6b602a7daca93915f626fc722782063a7 (patch)
treeef3aa38dc681a7af29eb075321a3aeb667697acf /src/mesh
parent7863e13c7df74aa524c04cb2fc2215c656df5a80 (diff)
downloadgnunet-37f390b6b602a7daca93915f626fc722782063a7.tar.gz
gnunet-37f390b6b602a7daca93915f626fc722782063a7.zip
- skip all metadata update on destroyed connections
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index c8be12aa7..7fbe0cd52 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -587,7 +587,6 @@ message_sent (void *cls,
587 pid = 0; 587 pid = 0;
588 LOG (GNUNET_ERROR_TYPE_DEBUG, " %ssent %s %s\n", 588 LOG (GNUNET_ERROR_TYPE_DEBUG, " %ssent %s %s\n",
589 sent ? "" : "not ", GM_f2s (fwd), GM_m2s (type)); 589 sent ? "" : "not ", GM_f2s (fwd), GM_m2s (type));
590 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
591 if (NULL != q) 590 if (NULL != q)
592 { 591 {
593 pid = q->pid; 592 pid = q->pid;
@@ -608,6 +607,13 @@ message_sent (void *cls,
608 { 607 {
609 forced = GNUNET_NO; 608 forced = GNUNET_NO;
610 } 609 }
610 if (NULL == c)
611 {
612 GNUNET_break (type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN ||
613 type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY);
614 return;
615 }
616 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
611 c->pending_messages--; 617 c->pending_messages--;
612 if (GNUNET_YES == c->destroy && 0 == c->pending_messages) 618 if (GNUNET_YES == c->destroy && 0 == c->pending_messages)
613 { 619 {