diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-13 11:38:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-13 11:38:52 +0000 |
commit | a729eb5f4fdb1b240a705a9f76d6cc0c4a575b9f (patch) | |
tree | 553fe7be9532d35c4a01304667b9745196abc7a9 | |
parent | 70de2534e40ac0768f0f0d62a2b9d7bc593fba82 (diff) | |
download | gnunet-a729eb5f4fdb1b240a705a9f76d6cc0c4a575b9f.tar.gz gnunet-a729eb5f4fdb1b240a705a9f76d6cc0c4a575b9f.zip |
use add now instead of running immediately, which may free th and have some odd effects
-rw-r--r-- | src/transport/transport_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index c98194da0..24803f9c7 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -1917,7 +1917,9 @@ GNUNET_TRANSPORT_notify_transmit_ready (struct GNUNET_TRANSPORT_Handle | |||
1917 | "Peer `%4s' is ready to receive, scheduling message for delivery now.\n", | 1917 | "Peer `%4s' is ready to receive, scheduling message for delivery now.\n", |
1918 | GNUNET_i2s (target)); | 1918 | GNUNET_i2s (target)); |
1919 | #endif | 1919 | #endif |
1920 | schedule_request (th); | 1920 | th->notify_delay_task |
1921 | = GNUNET_SCHEDULER_add_now (handle->sched, | ||
1922 | &peer_transmit_timeout, th); | ||
1921 | return th; | 1923 | return th; |
1922 | } | 1924 | } |
1923 | 1925 | ||