From: Bart Polot Date: Thu, 26 Jan 2012 15:08:40 +0000 (+0000) Subject: - Fixed #2105 X-Git-Tag: initial-import-from-subversion-38251~15069 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e1865f39492df814911c4448155df6b09ab802d;p=oweals%2Fgnunet.git - Fixed #2105 --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 74fcbc2ff..4b16b004b 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1168,10 +1168,11 @@ send_callback (void *cls, size_t size, void *buf) if (NULL != (th = h->th_head)) { LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: next size: %u\n", th->size); - h->th = - GNUNET_CLIENT_notify_transmit_ready (h->client, th->size, - GNUNET_TIME_UNIT_FOREVER_REL, - GNUNET_YES, &send_callback, h); + if (NULL == h->th) + h->th = + GNUNET_CLIENT_notify_transmit_ready (h->client, th->size, + GNUNET_TIME_UNIT_FOREVER_REL, + GNUNET_YES, &send_callback, h); } LOG (GNUNET_ERROR_TYPE_DEBUG, "mesh: Send packet() END\n"); if (GNUNET_NO == h->in_receive)