aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-04-11 15:30:33 +0000
committerBart Polot <bart@net.in.tum.de>2014-04-11 15:30:33 +0000
commitfddec61ab1daccd0538b6c601fb4098ec05c0182 (patch)
treeac03cd0132cbf3ad0120c8c544dbd51183e230a2 /src
parent8b2a06b204e2af48803b852692d784649437bec3 (diff)
downloadgnunet-fddec61ab1daccd0538b6c601fb4098ec05c0182.tar.gz
gnunet-fddec61ab1daccd0538b6c601fb4098ec05c0182.zip
- de-duplicate ifs
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 7315b607f..fccb89055 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -639,6 +639,8 @@ message_sent (void *cls,
639 { 639 {
640 GNUNET_assert (NULL != q); 640 GNUNET_assert (NULL != q);
641 fc->last_pid_sent = pid; 641 fc->last_pid_sent = pid;
642 GMC_send_ack (c, fwd, GNUNET_NO);
643 connection_reset_timeout (c, fwd);
642 } 644 }
643 645
644 LOG (GNUNET_ERROR_TYPE_DEBUG, "! Q_N- %p %u\n", fc, fc->queue_n); 646 LOG (GNUNET_ERROR_TYPE_DEBUG, "! Q_N- %p %u\n", fc, fc->queue_n);
@@ -655,11 +657,6 @@ message_sent (void *cls,
655 "! forced, Q_N not accounting pid %u\n", 657 "! forced, Q_N not accounting pid %u\n",
656 fc->last_pid_sent); 658 fc->last_pid_sent);
657 } 659 }
658 if (GNUNET_YES == sent)
659 {
660 GMC_send_ack (c, fwd, GNUNET_NO);
661 connection_reset_timeout (c, fwd);
662 }
663 break; 660 break;
664 661
665 case GNUNET_MESSAGE_TYPE_MESH_POLL: 662 case GNUNET_MESSAGE_TYPE_MESH_POLL: