From 9941195f9834990ed2c5e7d6d48717c1ca116177 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 24 Aug 2012 16:32:08 +0000 Subject: [PATCH] - send only one ack per packet, send before callback (callback can issue destroy) --- src/mesh/mesh_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 78451a64c..1162f9980 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1163,6 +1163,7 @@ process_incoming_data (struct GNUNET_MESH_Handle *h, } t->last_recv_pid = pid; type = ntohs (payload->type); + send_ack (h, t); for (i = 0; i < h->n_handlers; i++) { handler = &h->message_handlers[i]; @@ -1183,7 +1184,6 @@ process_incoming_data (struct GNUNET_MESH_Handle *h, { LOG (GNUNET_ERROR_TYPE_DEBUG, "callback completed successfully\n"); - send_ack (h, t); } } } -- 2.25.1