cont must be called instantly
authorChristian Grothoff <christian@grothoff.org>
Tue, 16 Nov 2010 20:23:34 +0000 (20:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 16 Nov 2010 20:23:34 +0000 (20:23 +0000)
src/core/core_api.c

index 350f3d2b8dd1ac50becf4eb00a1141040ef1e019..fb975e731777fd37ed781c1f6323630ac3c87f24 100644 (file)
@@ -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;