diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-12 13:29:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-12 13:29:05 +0000 |
commit | a6f43190ab793b3487da2133735e166e337000c4 (patch) | |
tree | fc2dacc6a36f3ec04cf86a14cdea9c5bdf45274f /src/util/test_connection_addressing.c | |
parent | 61cfd3340e67672f351ab92dab7da72dca058c79 (diff) | |
download | gnunet-a6f43190ab793b3487da2133735e166e337000c4.tar.gz gnunet-a6f43190ab793b3487da2133735e166e337000c4.zip |
cancel pending write if we are just dead anyway
Diffstat (limited to 'src/util/test_connection_addressing.c')
-rw-r--r-- | src/util/test_connection_addressing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_connection_addressing.c b/src/util/test_connection_addressing.c index 8f76b8e74..e900e2ed7 100644 --- a/src/util/test_connection_addressing.c +++ b/src/util/test_connection_addressing.c | |||
@@ -102,7 +102,7 @@ receive_check (void *cls, | |||
102 | else | 102 | else |
103 | { | 103 | { |
104 | *ok = 0; | 104 | *ok = 0; |
105 | GNUNET_CONNECTION_destroy (asock); | 105 | GNUNET_CONNECTION_destroy (asock, GNUNET_YES); |
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 | ||
@@ -132,7 +132,7 @@ run_accept (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
132 | expect.sin_addr.s_addr = htonl (INADDR_LOOPBACK); | 132 | expect.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
133 | GNUNET_assert (0 == memcmp (&expect, v4, alen)); | 133 | GNUNET_assert (0 == memcmp (&expect, v4, alen)); |
134 | GNUNET_free (addr); | 134 | GNUNET_free (addr); |
135 | GNUNET_CONNECTION_destroy (lsock); | 135 | GNUNET_CONNECTION_destroy (lsock, GNUNET_YES); |
136 | GNUNET_CONNECTION_receive (asock, | 136 | GNUNET_CONNECTION_receive (asock, |
137 | 1024, | 137 | 1024, |
138 | GNUNET_TIME_relative_multiply | 138 | GNUNET_TIME_relative_multiply |
@@ -172,7 +172,7 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
172 | 12, | 172 | 12, |
173 | GNUNET_TIME_UNIT_SECONDS, | 173 | GNUNET_TIME_UNIT_SECONDS, |
174 | &make_hello, NULL)); | 174 | &make_hello, NULL)); |
175 | GNUNET_CONNECTION_destroy (csock); | 175 | GNUNET_CONNECTION_destroy (csock, GNUNET_YES); |
176 | GNUNET_SCHEDULER_add_read_net (tc->sched, | 176 | GNUNET_SCHEDULER_add_read_net (tc->sched, |
177 | GNUNET_TIME_UNIT_FOREVER_REL, | 177 | GNUNET_TIME_UNIT_FOREVER_REL, |
178 | ls, &run_accept, cls); | 178 | ls, &run_accept, cls); |