fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 10:06:21 +0000 (10:06 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 10:06:21 +0000 (10:06 +0000)
src/transport/transport_api.c

index f6ba793ced79a8376201dab7dbf996642c84ef5c..0ddd3b86ba44f5c9181b4d7adbf5dd07fec48593 100644 (file)
@@ -1546,7 +1546,10 @@ GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle)
     }
   GNUNET_free_non_null (handle->my_hello);
   handle->my_hello = NULL;
-  GNUNET_SCHEDULER_run (&stop_task, handle);
+  GNUNET_SCHEDULER_add_continuation (handle->sched,
+                                    GNUNET_YES,
+                                    &stop_task, handle,
+                                    GNUNET_SCHEDULER_REASON_PREREQ_DONE);
   if (NULL != (client = handle->client))
     {
 #if DEBUG_TRANSPORT