From 84d2e96422d2a67048cd92a8cd6a25dfb389f692 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Nov 2010 20:23:34 +0000 Subject: [PATCH] cont must be called instantly --- src/core/core_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.25.1