From: Christian Grothoff Date: Tue, 16 Nov 2010 20:23:34 +0000 (+0000) Subject: cont must be called instantly X-Git-Tag: initial-import-from-subversion-38251~19711 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=84d2e96422d2a67048cd92a8cd6a25dfb389f692;p=oweals%2Fgnunet.git cont must be called instantly --- diff --git a/src/core/core_api.c b/src/core/core_api.c index 350f3d2b8..fb975e731 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -658,11 +658,9 @@ transmit_message (void *cls, memcpy (buf, hdr, msize); GNUNET_CONTAINER_DLL_remove (h->pending_head, h->pending_tail, - cm); + cm); if (NULL != cm->cont) - GNUNET_SCHEDULER_add_continuation (cm->cont, - cm->cont_cls, - GNUNET_SCHEDULER_REASON_PREREQ_DONE); + cm->cont (cm->cont_cls, NULL); GNUNET_free (cm); trigger_next_request (h, GNUNET_NO); return msize;