aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_connection_receive_cancel.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
commita6f43190ab793b3487da2133735e166e337000c4 (patch)
treefc2dacc6a36f3ec04cf86a14cdea9c5bdf45274f /src/util/test_connection_receive_cancel.c
parent61cfd3340e67672f351ab92dab7da72dca058c79 (diff)
downloadgnunet-a6f43190ab793b3487da2133735e166e337000c4.tar.gz
gnunet-a6f43190ab793b3487da2133735e166e337000c4.zip
cancel pending write if we are just dead anyway
Diffstat (limited to 'src/util/test_connection_receive_cancel.c')
-rw-r--r--src/util/test_connection_receive_cancel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_connection_receive_cancel.c b/src/util/test_connection_receive_cancel.c
index 9b00bbdf7..f3bd40438 100644
--- a/src/util/test_connection_receive_cancel.c
+++ b/src/util/test_connection_receive_cancel.c
@@ -94,7 +94,7 @@ run_accept_cancel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
94 NULL, NULL, ls, 1024); 94 NULL, NULL, ls, 1024);
95 GNUNET_assert (asock != NULL); 95 GNUNET_assert (asock != NULL);
96 GNUNET_assert (GNUNET_YES == GNUNET_CONNECTION_check (asock)); 96 GNUNET_assert (GNUNET_YES == GNUNET_CONNECTION_check (asock));
97 GNUNET_CONNECTION_destroy (lsock); 97 GNUNET_CONNECTION_destroy (lsock, GNUNET_YES);
98 GNUNET_CONNECTION_receive (asock, 98 GNUNET_CONNECTION_receive (asock,
99 1024, 99 1024,
100 GNUNET_TIME_relative_multiply 100 GNUNET_TIME_relative_multiply
@@ -108,8 +108,8 @@ receive_cancel_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
108{ 108{
109 int *ok = cls; 109 int *ok = cls;
110 GNUNET_CONNECTION_receive_cancel (asock); 110 GNUNET_CONNECTION_receive_cancel (asock);
111 GNUNET_CONNECTION_destroy (csock); 111 GNUNET_CONNECTION_destroy (csock, GNUNET_YES);
112 GNUNET_CONNECTION_destroy (asock); 112 GNUNET_CONNECTION_destroy (asock, GNUNET_YES);
113 *ok = 0; 113 *ok = 0;
114} 114}
115 115