diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-08-24 16:32:08 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-08-24 16:32:08 +0000 |
commit | b55c02b70d90dfa2d0f60b83d4926cd0f811e252 (patch) | |
tree | 476add90a3ba13892acaa239a470558fe07623de /src/mesh/mesh_api.c | |
parent | b5d39504c922990d7464e401a2173a4a28f73a1f (diff) |
- send only one ack per packet, send before callback (callback can issue destroy)
git-svn-id: https://gnunet.org/svn/gnunet@23413 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/mesh/mesh_api.c')
-rw-r--r-- | src/mesh/mesh_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 78451a64c8..1162f99808 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); } } } |