diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-29 23:23:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-29 23:23:54 +0000 |
commit | 5f01efe35bc31d0638a0652df0efe8858f269ff8 (patch) | |
tree | 20a7d8a0e1fc4a471173476a78f195fb0920ef88 /src | |
parent | 2ad42b2804d3178a06dc626a224890d163be2c00 (diff) | |
download | gnunet-5f01efe35bc31d0638a0652df0efe8858f269ff8.tar.gz gnunet-5f01efe35bc31d0638a0652df0efe8858f269ff8.zip |
inline
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_api.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 7ffff30d9..0898c9a55 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -1475,19 +1475,6 @@ GNUNET_TRANSPORT_connect (struct GNUNET_SCHEDULER_Handle *sched, | |||
1475 | 1475 | ||
1476 | 1476 | ||
1477 | /** | 1477 | /** |
1478 | * These stop activities must be run in a fresh | ||
1479 | * scheduler that is NOT in shutdown mode. | ||
1480 | */ | ||
1481 | static void | ||
1482 | stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1483 | { | ||
1484 | struct GNUNET_TRANSPORT_Handle *handle = cls; | ||
1485 | |||
1486 | GNUNET_ARM_stop_services (handle->cfg, handle->sched, "transport", "peerinfo", NULL); | ||
1487 | } | ||
1488 | |||
1489 | |||
1490 | /** | ||
1491 | * Disconnect from the transport service. | 1478 | * Disconnect from the transport service. |
1492 | */ | 1479 | */ |
1493 | void | 1480 | void |
@@ -1547,10 +1534,7 @@ GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle) | |||
1547 | } | 1534 | } |
1548 | GNUNET_free_non_null (handle->my_hello); | 1535 | GNUNET_free_non_null (handle->my_hello); |
1549 | handle->my_hello = NULL; | 1536 | handle->my_hello = NULL; |
1550 | GNUNET_SCHEDULER_add_continuation (handle->sched, | 1537 | GNUNET_ARM_stop_services (handle->cfg, handle->sched, "transport", "peerinfo", NULL); |
1551 | GNUNET_YES, | ||
1552 | &stop_task, handle, | ||
1553 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
1554 | if (NULL != (client = handle->client)) | 1538 | if (NULL != (client = handle->client)) |
1555 | { | 1539 | { |
1556 | #if DEBUG_TRANSPORT | 1540 | #if DEBUG_TRANSPORT |