From: Christian Grothoff Date: Wed, 9 May 2012 19:43:27 +0000 (+0000) Subject: -fix #2331 X-Git-Tag: initial-import-from-subversion-38251~13564 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b4e0339e9687a8315bc078092ff017283d5de345;p=oweals%2Fgnunet.git -fix #2331 --- diff --git a/src/core/core_api.c b/src/core/core_api.c index b9c158ae3..18bfde7a9 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -593,6 +593,11 @@ transmission_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) /** * Transmit the next message to the core service. + * + * @param cls closure with the 'struct GNUNET_CORE_Handle' + * @param size number of bytes available in buf + * @param buf where the callee should write the message + * @return number of bytes written to buf */ static size_t transmit_message (void *cls, size_t size, void *buf) @@ -1432,7 +1437,8 @@ GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th) * us from the 'ready' list */ GNUNET_CONTAINER_DLL_remove (h->ready_peer_head, h->ready_peer_tail, pr); } - request_next_transmission (pr); + if (NULL != h->client) + request_next_transmission (pr); } }