diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-16 20:23:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-16 20:23:34 +0000 |
commit | 84d2e96422d2a67048cd92a8cd6a25dfb389f692 (patch) | |
tree | 73b6ee62d8dfa1f06b381c61266b50747ce46251 /src | |
parent | bec09787d847ca8301480b746a7b1f15d85a6f8d (diff) | |
download | gnunet-84d2e96422d2a67048cd92a8cd6a25dfb389f692.tar.gz gnunet-84d2e96422d2a67048cd92a8cd6a25dfb389f692.zip |
cont must be called instantly
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core_api.c | 6 |
1 files 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, | |||
658 | memcpy (buf, hdr, msize); | 658 | memcpy (buf, hdr, msize); |
659 | GNUNET_CONTAINER_DLL_remove (h->pending_head, | 659 | GNUNET_CONTAINER_DLL_remove (h->pending_head, |
660 | h->pending_tail, | 660 | h->pending_tail, |
661 | cm); | 661 | cm); |
662 | if (NULL != cm->cont) | 662 | if (NULL != cm->cont) |
663 | GNUNET_SCHEDULER_add_continuation (cm->cont, | 663 | cm->cont (cm->cont_cls, NULL); |
664 | cm->cont_cls, | ||
665 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
666 | GNUNET_free (cm); | 664 | GNUNET_free (cm); |
667 | trigger_next_request (h, GNUNET_NO); | 665 | trigger_next_request (h, GNUNET_NO); |
668 | return msize; | 666 | return msize; |