From: Bart Polot Date: Fri, 24 Aug 2012 16:32:08 +0000 (+0000) Subject: - send only one ack per packet, send before callback (callback can issue destroy) X-Git-Tag: initial-import-from-subversion-38251~12096 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9941195f9834990ed2c5e7d6d48717c1ca116177;p=oweals%2Fgnunet.git - send only one ack per packet, send before callback (callback can issue destroy) --- 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); } } }